不要相信你的眼睛-程序问题

调试http协议,每次发送POST数据得到:

sRequest2 = 0x05c0cc5c "POST /usbctl?auth_token=123 HTTP/1.1\r\nHost: 127.0.0.1:90\r\nUser-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0\r\nAccept: */*\r\nAccept-Language: null\r\nAccept-Encoding: gzi...

就是得不到body的值  调试几小时 recv始终接收1次 

 

最后用日志把 sRequest2输出

POST /usbctl?auth_token=123 HTTP/1.1
Host: 127.0.0.1:90
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0
Accept: */*
Accept-Language: null
Accept-Encoding: gzip, deflate
Content-Length: 79
Content-Type: text/plain;charset=UTF-8
Connection: keep-alive

POST
{
 协议内容

 

神,一样的内容出现 

原来是vs2015 大爷的 我每次点变量 复制粘贴 截取了部分字符串

查看watch sRequest2

- sRequest 0x05ecf6bc "POST /usbctl?auth_token=123 HTTP/1.1\r\nHost: 127.0.0.1:90\r\nUser-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0\r\nAccept: */*\r\nAccept-Language: null\r\nAccept-Encoding: gzip, deflate\r\nContent-Length: 79\r\nContent-Type: text/plain;charset=UTF-8\r\nConnection: keep-alive\r\n\r\nPOST\n{\n\内容

 

真是可笑的 问题   .....

 

posted on 2017-11-02 22:15  lydstory  阅读(106)  评论(0)    收藏  举报

导航