我不断收到请求格式无效。
这是发送的原始 http:
POST http://x.x.x.x/ws/MyWebService.asmx/TestEvent HTTP/1.1
contentType: "application/json; charset=utf-8",
dataType: "json",
data: {"strData":"1"}
Host: x.x.x.x
Content-Length: 4
非常感谢任何帮助。
谢谢!
最佳答案
我觉得应该更像这样:
POST /ws/MyWebService.asmx/TestEvent HTTP/1.1
Host: x.x.x.x
Content-Type: application/json; charset=utf-8
Content-Length: 15
{"strData":"1"}
您可以在连接中指定要连接的服务器。
关于asp.net - 是否可以使用 Fiddler 的请求生成器发出 JSON 请求?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2589174/