不至于吧,是不是你用的sniffer有问题呀?

解决方案 »

  1.   

    应该没有问题!服务器返回的信息是用户名是空!就是说我的登陆信息不被识别!faint!从ie登陆的信息sniffer可以正确显示的!我登陆的是login.mail.sohu.com 的后台php!帮帮我啊!!
      

  2.   

    CString m_optional="UserName="+m_name+"&"+"Password="+m_password+"&"
            +"x=28&y=4";
     
    LPTSTR AcceptTypes[2] = {TEXT("text/*"), NULL}; 
    CString szHeaders="Content-Type:application/x-www-form-urlencoded\r\nAccept-Encoding:gzip,deflate\r\nProxy-Connection:Keep-Alive\r\nUser-Agent:Mozilla/4.0(compatible;MSIE 5.01;Windows NT 5.0)\r\n";
    ^^^^^^^^^^^^
    ^^^^^
     BOOL bSendRequest=::HttpSendRequest(hHttpFile,
                                       szHeaders,// NULL,
      szHeaders.GetLength(),// 0,
       &m_optional,
       m_optional.GetLength());
    各位大侠帮我看看是什么问题?
    各位大侠帮我看看是什么问题?各位大侠帮我看看是什么问题?各位大侠帮我看看是什么问题?