你可以把相关的数据整合成  XML或者json格式,post过去

解决方案 »

  1.   


    file_get_contents ( string filename [, bool use_include_path [, resource context [, int offset [, int maxlen]]]] )curl fsockopen ( string target [, int port [, int &errno [, string &errstr [, float timeout]]]] )
      

  2.   

    正解,以前用的一个函数,具体的参考手册fsockopen function getdata($ip,$condition,$url){
        $req=$condition;
        $header .= "POST $url HTTP/1.0\r\n";
        $header .= "Content-Type: application/x-www-form-urlencoded\r\n";
        $header .= "Content-Length: " . strlen($req) . "\r\n\r\n";
        
        $fp = fsockopen ($ip,80, $errno, $errstr,30);
        if(!$fp){
           _log('--ERROR--'.$ip.' can not open');
        }else{
          while (!feof($fp)) {
           fputs ($fp, $header . $req);
           $res = fgets ($fp, 204800);
          }
         }
         fclose ($fp);     return $res;}