站内搜索: 请输入搜索关键词

当前页面: 开发资料首页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


↑返回目录
前一篇: How to transfer/upload big files to remote http server?
后一篇: 今天,终于鼓起勇气写了公务员辞职申请,继续干我的老本行程序员,难过,散分!!!