Re: [问题] Request.InputStream收资料的问题

楼主: akito117 (宗益)   2018-08-09 15:39:20
※ 引述《akito117 (波吉)》之铭言:
: 使用
: 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
http:// 192.168.1.95/DryPump/(x(1)s(2wgdvdeog2tn4dc2zgxpdg0))/Api/TBD
?AspxAutoDetectCookieSupport=1
FileNotFoundException
不知道为什么中间多了一个东西?
所以找不到路径
那个不是我设定的,多的路径要怎么拿掉?
感谢(‵・ω・′)ゞ
找到原因了,只要设定Everyone的权限,APP连结就会正常了
谢谢ヾ(≧▽≦)ノ
作者: J002 (阿里山 我来了XD~)   2018-08-09 16:09:00
web.config找到cookieless,改成false

Links booklink

Contact Us: admin [ a t ] ucptt.com