|
我是想要post提交然后获取数据,但是需要提交一定的头部参数,比如Cache-Control | no-cache | Connection | 这两个,但是不知道如何设置?盼飞哥指点!
我测试一直都是返回string error
不知道如何搞法?
我用的是在线工具生成的.
响应头信息原始头信息
Connection | Keep-Alive | Content-Encoding | gzip | Content-Type | text/html;charset=UTF-8 | Date | Sun, 28 Apr 2013 05:56:32 GMT | Server | Apache-Coyote/1.1 | Transfer-Encoding | chunked | Vary | Accept-Encoding | 请求头信息原始头信息
Accept | text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 | Accept-Encoding | gzip, deflate | Accept-Language | zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3 | Cache-Control | no-cache | Connection | keep-alive | Content-Length | 271 | Content-Type | application/x-www-form-urlencoded; charset=UTF-8 | Cookie | xxxxxxxxxxxxx | Host | xxxx.com | Pragma | no-cache | Referer | http://xxxxxxxx.com | User-Agent | Mozilla/5.0 (Windows NT 6.1; rv:19.0) Gecko/20100101 Firefox/19.0 | X-Requested-With | XMLHttpRequest |
|
|