截包得
POST /SavePost.asp?Action=sre&method=Topic&boardid=293 HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel,application/vnd.ms-powerpoint, application/msword, */*
Referer: http://www.xxxx.cn/post.asp?action=re&BoardID=293&ID=8888&star=1&page=1
Accept-Language: zh-cn
Content-Type: application/x-www-form-urlencoded
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; Maxthon; .NET CLR 1.1.4322)
Host: www.xxxx.cn/
Content-Length: 263
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: ASPSESSIONIDQAASTSQT=BMKKOMCAIOEJAEFGJBDHAPOO; DbbsnewDvbbs7%2E1%2E0SQLKill=kill=0; DbbsnewDvbbs7%2E1%2E0SQL=UserID=90398&usercookies=3&StatUserID=2226160074&userclass=%C5%A9%C3%
F1&username=haha777&password=ZeuHx4j886YtC856&userhidden=2; upNum=0; Dvbbs=
upfilerename=&Body=nnnnnnnnnnnnnnnnnnnnnnnnn&dvbbs=DbbsnewDvbbs7.1.0SQL&star=1&page=1&TotalUseTable=Dv_bbs7&followup=6666&rootID=8888&username=haha&passwd=**********&font=&topic=bbbbbbbbbbbbbbbbbb&Expression=face1.gif&autofix=1&signflag=yes&email
flag=0
我该怎么编程啊

解决方案 »

  1.   

    http://community.csdn.net/Expert/TopicView.asp?id=4051264
      

  2.   

    HttpWebRequest的几个封装类足够了。 
     fancyf(凡瑞) 说的帖子里面有,要找一下。
      

  3.   

    xxx=111;这种cookie偶知道怎么构造。
    可是动网的DbbsnewDvbbs7%2E1%2E0SQLKill=kill=0;有两个等号,怎么构造的???
      

  4.   

    DbbsnewDvbbs7%2E1%2E0SQLKill=kill=0应该 DbbsnewDvbbs7%2E1%2E0SQLKill 是name ,kill=0是value
    "DbbsnewDvbbs7%2E1%2E0SQLKill=" & me.server.urlencode("kill=0")这样编码就可以了。实际上用dotnet操作http协议,维护cookie没有必要这么深入
    他的 httpwebReponse.Cookies 就是cookie集合
    在请求的时候就把上面的Cookies用
    HttpWebRequest.CookieContainer = New CookieContainer
    HttpWebRequest.CookieContainer.add(上面的cookie集合)
    就可以了。具体的可以到我的csdn小助手里面看如何实现的。===============================
        CSDN小助手 是一款脱离浏览器也可以使用csdn论坛的
    软件!
        界面: http://qqwwee.com/
        下载: http://qqwwee.com/csdn.rar 包含源代码