wininet的CInternetSession类相关,用抓包工具抓个包,然后模拟提交数据即可。

解决方案 »

  1.   

    你想的太复杂,不是做抓包之类的工作,我只是要个界面手动将pos参数发送出去例子,这是个作业,我是做c#的想找个代码交给朋友就行了。
      

  2.   

    Begin an HTTP session.
     Create a CInternetSession object.
     Initializes WinInet and connects to server.
     
    Connect to an HTTP server.
     Use CInternetSession::GetHttpConnection.
     Returns a CHttpConnection object.
     
    Open an HTTP request.
     Use CHttpConnection::OpenRequest.
     Returns a CHttpFile object.
     
    Send an HTTP request.
     Use CHttpFile::AddRequestHeaders and CHttpFile::SendRequest.
     Finds the file. Returns FALSE if the file is not found.
     
    Read from the file.
     Use CHttpFile.
     Reads the specified number of bytes using a buffer you supply.
     
    Handle exceptions.
     Use the CInternetException class.
     Handles all common Internet exception types.
     
    End the HTTP session.
     Dispose of the CInternetSession object.
     Automatically cleans up open file handles and connections.
     
      

  3.   

    具体网页要具体分析的。。不同的网页post的参数都不一样!!
      

  4.   

    参考这个文章,应该有价值
    http://blog.csdn.net/bobui/article/details/8475062
    http://blog.csdn.net/huangxy10/article/details/7662322
      

  5.   

    看了,我用vs自带的例子试试,主要是没用过vc不知道如何开始界面之类的,不像c#直接画个界面放两个文本框就可以编译了,搞的一头雾水。
      

  6.   

    http://pan.baidu.com/s/1CETFs
      

  7.   

    这年头什么问题都有问的,给服务器POST数据的方法很多,就是不自己动手查询一下,对于这种无聊的问题,直接PASS
      

  8.   

    写一个sock,再封装一个post包!