firefox + firebug 可以解决你的问题

解决方案 »

  1.   

    http://blog.sevenight.com/index.php?m=blog&a=show&id=69
    获取网易通迅录
      

  2.   

    向这个地址发送请求
    http://g1a126.mail.163.com/a/s?sid=".$cookieid."&func=global:sequential
    同时post一个xml串
    <?xml version=\"1.0\"?> <object> <array name=\"items\"> <object> <string name=\"func\">pab:searchContacts </string> <object name=\"var\"> <array name=\"order\"> <object> <string name=\"field\">FN </string> <boolean name=\"ignoreCase\">true </boolean> </object> </array> </object> </object> <object> <string name=\"func\">user:getSignatures </string> </object> <object> <string name=\"func\">pab:getAllGroups </string> </object> </array> </object>
      

  3.   

    谢谢这位仁兄,基本上有思路了,我刚才在浏览器上试了一下,我登录了之后,知道了sid,然后我用下面的地址,在浏览器里打开,显示的xml内容是空的,是不是必须post一段内容过去才可以呢
    http://g1a126.mail.163.com/a/s?sid=aCPRwtDDwHjAqWhmMHDDHwkqWLPTTeNB&func=global:sequential
      

  4.   


    $ch = curl_init( );
    curl_setopt( $ch, CURLOPT_URL, "http://g1a126.mail.163.com/a/s?sid=".$cookieid."&func=global:sequential" );
    curl_setopt( $ch, CURLOPT_COOKIEFILE, COOKIEJAR );
    curl_setopt( $ch, CURLOPT_HTTPHEADER, array( "Content-Type: application/xml" ) );
    $str = "<?xml version=\"1.0\"?><object><array name=\"items\"><object><string name=\"func\">pab:searchContacts</string><object name=\"var\"><array name=\"order\"><object><string name=\"field\">FN</string><boolean name=\"ignoreCase\">true</boolean></object></array></object></object><object><string name=\"func\">user:getSignatures</string></object><object><string name=\"func\">pab:getAllGroups</string></object></array></object>";
    curl_setopt( $ch, CURLOPT_POST, 1 );
    curl_setopt( $ch, CURLOPT_POSTFIELDS, $str );
    curl_setopt( $ch, CURLOPT_TIMEOUT, TIMEOUT );这个xml串是要post过去的,呵呵,再给你一段代码.
    其实你可以在网上下载这段代码的.
      

  5.   

    curl_setopt( $ch, CURLOPT_COOKIEFILE, COOKIEJAR );
    必面指明cookie所保存的目录,这个是你登录时所存放的cookie所在的目录.
    也就是你伪造的cookie目录!