W
wingsn
Unregistered / Unconfirmed
GUEST, unregistred user!
现在已经会用TCPclient实现http get功能了,但是post功能还有问题,
我已经按照IE发出的包的内容照葫芦画瓢发出如下请求:
POST /test2.asp HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/msword, */*
Referer: http://202.38.83.57/test.asp
Accept-Language: zh-cn
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; MyIE 3.01)
Host: 202.38.83.57
Content-Length: 21
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: name=wingsn; ASPSESSIONIDGGGGGVBG=JOCLDCODKDTGBGAFEILCJEFM
t1=34&t2=%BF%AA%CA%BC
然后服务器会返回 HTTP/1.1 100 Continue
IE在此之后是发送了一个没有内容的包过去,服务器就继续返回HTTP/1.1 200 OK,并能
显示正确结果,但是我照样子做却不行,这是怎么搞的?大侠们继续解释一下?
我已经按照IE发出的包的内容照葫芦画瓢发出如下请求:
POST /test2.asp HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/msword, */*
Referer: http://202.38.83.57/test.asp
Accept-Language: zh-cn
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; MyIE 3.01)
Host: 202.38.83.57
Content-Length: 21
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: name=wingsn; ASPSESSIONIDGGGGGVBG=JOCLDCODKDTGBGAFEILCJEFM
t1=34&t2=%BF%AA%CA%BC
然后服务器会返回 HTTP/1.1 100 Continue
IE在此之后是发送了一个没有内容的包过去,服务器就继续返回HTTP/1.1 200 OK,并能
显示正确结果,但是我照样子做却不行,这是怎么搞的?大侠们继续解释一下?