http post失败不返回
stringstream stream;
stream<<"POST /ww/wap_ww_dialog.htm?_input_charset=utf-8&sid=4b3b76b98da52e385074911f0829bfd8 HTTP/1.1\r\n"
<<"Host: im.m.taobao.com\r\n"
<<"User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1\r\n"
<<"Accept: text/html, application/xhtml+xml, */*\r\n"
<<"Accept-Language: zh-cn,zh;q=0.5\r\n"
<<"Accept-Charset: GBK,q=0.7,*;q=0.3\r\n"
<<"Cache-Control: max-age=0\r\n"
<<"Accept-Encoding: gzip, deflate\r\n"
<<"Content-Length: 530\r\n"
<<"Content-Type: application/x-www-form-urlencoded\r\n"
<<"Cache-Control: no-cache\r\n"
<<"Referer: http://im.m.taobao.com/ww/wap_ww_dialog.htm?_input_charset=utf-8&sid=4b3b76b98da52e385074911f0829bfd8\r\n"
<<"Cookie: imewweoriw=2t0PZ8JvIuoz4tV5Q%2BbcPW09zndtnMEVF7qJl6mbSbQ%3D\r\n"
<<"Connection: Keep-Alive\r\n\r\n"
<<"action=wap_ww_action&sid=4b3b76b98da52e385074911f0829bfd8&pay_order_id=&pay_order_id=&shop_id=&item_id=&toUser=Y250YW9iYW%2FI8dGptvkxMzE0&returnUrl=&firstMsg=true&sendItemInfoFlag=true&tmpItemId=&wwMsg=2013%E6%98%A5%E8%8A%82%E6%96%B0%E6%AC%BE%E5%93%81%E6%A0%BC%E5%AD%90%E6%AF%9B%E5%91%A2%E5%A4%A7%E8%A1%A3+%E7%BB%8F%E5%85%B8%E6%A0%BC%E7%BA%B9%E9%95%BF%E6%AC%BE%E5%91%A2%E5%A4%96%E5%A5%97%E4%B8%93%E6%9F%9C%E6%AD%A3%E5%93%81+%E7%89%9B%E8%A7%92&fastTalk=no_%21fasttalk_@value&event_submit_do_send_message=%E5%8F%91%E6%B6%88%E6%81%AF\r\n\r\n";
str = stream.str();
http post失败不返回
...全文
相关推荐
IOS AFNetworking的Post失败及requestSerializer的正确使用
主要介绍了IOS AFNetworking的Post失败及requestSerializer的正确使用的相关资料,需要的朋友可以参考下
Http-test.rar_HTTP_HTTP协议_c++ socket http get_http post get_sock
通过socket,实现http协议!支持get\post等操作。是用C++来实现的~
C#的HTTP协议中POST与GET的区别.pdf
C#的HTTP协议中POST与GET的区别.pdfC#的HTTP协议中POST与GET的区别.pdf
http请求 request失败自动重新尝试代码示例
主要介绍了http请求 request失败自动重新尝试代码示例,小编觉得还是挺不错的,具有一定借鉴价值,需要的朋友可以参考下
Jquery Post处理后不进入回调的原因及解决方法
通过Jquery的Post方法把Json数据传到Jsp后台,处理后却怎么都不进入回调函数,解决方法如下


