当然我已经在一网站注册我的信息,该网站也允许你发布一些信息
请问高手:
如何用vc实现自动信息发布,而免于手工到该网站去填写发布信息并提交呢?
甚急!!!

解决方案 »

  1.   

    我不是已经回答了吗。关键是你要先看懂HTTP协议。看看下面。POST /post.c++ HTTP/1.1
    Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*
    Referer: http://192.168.0.75:8000/post.htm
    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.1)
    Host: 192.168.0.75:8000
    Content-Length: 96
    Connection: Keep-Alive
    Cache-Control: no-cache
    Cookie: userName=过客5107031; roomID=0; userID=0; userPassword=myID=-1&myName=&toWhom=%CB%F9%D3%D0%C8%CB&action=%CB%B5&chatMode=p&toWhomID=-1&talkContent=aerga
      

  2.   

    谢了先,我去研究研究http,然后再试试
    再问问:是不是不同的网站都必须重新构造这些请求信息(用户名和密码忽虑时)
      

  3.   

    当然要重新构造。你要打开不同网站的HTML表单去记录它们的form元素名。