RT,我想模拟学校校园网登录,用Sniffer抓取了这样一个数据包:
?
羺 Accept: image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, */*
Referer: http://172.16.200.11/
Accept-Language: zh-CN
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
Host: 172.16.200.11
Content-Length: 63
Connection: Keep-Alive
Cache-Control: no-cache
DDDDD=20092955&upass=123456789&0MKKey=%B5%C7%C2%BC+Login&v6ip=
DDDDD是我的账号,upass是我的密码
现在我想用c++sock编程,把这段数据包重新发出去,但是第一行是乱码,不知道该怎么办...求高手指教!!!
先悬赏5分,回答满意追加200分
两位可不可以详细回答一下?我不太明白...