构造自己要发送的Http包信息

文章类型:delphi资料
发布日期:2009-7-9

typestate=1&Point=0&TopicName=%B7%A2%CC%F9%B2%E2%CA%D4%A3%AC%CF%D0%C8%CB%CE%F0%BD%F8%A3%A1&Room=1404&Content=rt

//Point:分数0  TopicName:文章标题:发贴测试,闲人勿进!是经过unicode编码的   Content:内容: rt  上面是传递的参数

10.104.9.30(1062)->          //发送方IP及端口

10.104.9.30(80)                //接受方IP及端口
POST /Expert/PostNew_SQL.asp HTTP/1.1           //接受页面及HTTP版本
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */* 
Referer: http://expert.csdn.net/Expert/PostNew.asp?room=1404        //提交的地址
Accept-Language: zh-cn     //中文语言
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate            //接受压缩格式类型
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)      //用户环境
Host: expert.csdn.net                       //主机名称
Content-Length: 111                       //长度:111
Connection: Keep-Alive                  //保持激活状态
Cache-Control: no-cache               //没有使用缓存
Cookie: remenber=0; ASPSESSIONIDAAATSBBS=POHKDGIBFHAMPECBCDHIHBCD; room=0; username=dashi888; speaknum=0; speaktime=2003%2D5%2D15+11%3A56%3A34; adminok=True; userid=487815; info1=0; m%5Ftype=1; aszx=0a727a0323230cd62e4cf5326besba01; mid=476831      //COOKIE的内容

注:用户的Cookie是经过32位加密的,我们要先构造自己要发送的Http包信息

自由风工作室-asp资料,delphi资料,windows资料,构造自己要发送的Http包信息