地址是
https://host309.hostmonster.com:2083/frontend/hostmonster/mail/pops.html打开之后是对话框的登录窗口,我用http抓包软件没有抓到post data

解决方案 »

  1.   

    因为这个不是post ,而是
                     〈HTTP/1.0 401 Unauthorized〉
      

  2.   

    嗯,这个不是post
    应该是类似windows系统认证那样的登录
    这样的登录过程怎么用curl才模拟啊
      

  3.   

    这样的登录过程怎么用curl来模拟啊
      

  4.   


    $url = 'XXX';
    $username = 'XXXXX';
    $password = 'YYYYY';$curl = curl_init();
    curl_setopt($curl, CURLOPT_URL, $url);curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
    curl_setopt($curl, CURLOPT_USERPWD, "[$username]:[$password]");