当前页面: 开发资料首页 → JSP 专题 → 怎么用socket发送原始post包到服务器。即post包的格式是怎么样的?
怎么用socket发送原始post包到服务器。即post包的格式是怎么样的?
摘要: 怎么用socket发送原始post包到服务器。即post包的格式是怎么样的?
这个是我截取自firefox的包
POST / HTTP/1.1
Host: localhost:8181
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.8.0.7) Gecko/20060909 (FoxPlus) Firefox/1.5.0.7
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: zh-cn,zh;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: gb2312,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 24
num=aa&kill=bb&United=cc
我也很想知道,大家一起探讨。
帮顶,学习。
up