使用
Stream req = Request.InputStream;
req.Seek(0, SeekOrigin.Begin);
string json = new StreamReader(req).ReadToEnd();
收json的封包
使用Ajax.Post发送的话,收的到资料
但是用平版APP程式发送的话,收不到资料
我在两台主机上有装一样的程式
A主机收的到APP资料,B主机收不到APP资料
B主机之前有重灌过VS2017,不知道有没有影响
想不出那里设定有动到
希望能帮小弟解一下,感谢(‵・ω・′)ゞ
IIS Log长这样
2018-07-20 07:13:24 192.168.1.95 POST /DryPump/Api/TBD - 80 - 192.168.1.52
okhttp/3.8.1 - 302 0 0 4819
2018-07-20 07:13:24 192.168.1.95 GET /DryPump/Api/TBD
AspxAutoDetectCookieSupport=1 80 - 192.168.1.52 okhttp/3.8.1 - 302 0 0 9
2018-07-20 07:13:24 192.168.1.95 GET /DryPump/Api/TBD
AspxAutoDetectCookieSupport=1 80 - 192.168.1.52 okhttp/3.8.1 - 404 0 0 158
2018-07-20 07:14:12 192.168.1.95 POST /DryPump/Api/TBD - 80 - 192.168.1.52
okhttp/3.8.1 - 500 0 0 10214
2018-07-20 07:14:15 192.168.1.95 POST /DryPump/Api/TBD - 80 - 192.168.1.52
okhttp/3.8.1 - 500 0 0 17
2018-07-20 07:15:40 192.168.1.95 POST /DryPump/Api/TBD - 80 - 192.168.1.52
okhttp/3.8.1 - 500 0 0 9083