本帖最后由 bbbbbjt46 于 2013-05-30 12:21:18 编辑

解决方案 »

  1.   

    function request_by_other($remote_server,$post_string){
     $context = array(
     'http'=>array(
     'method'=>'POST',
     'header'=>'Content-type: application/x-www-form-urlencoded'."\r\n".
     'User-Agent : Jimmy\'s POST Example beta'."\r\n".
     'Content-length: '.strlen($post_string)+8,
     'content'=>'mypost='.$post_string)
     );
     $stream_context = stream_context_create($context);
     
     $data = file_get_contents($remote_server,FALSE,$stream_context);
     return $data;
    }
      

  2.   

    用php_curl吧,百度一下,看哪一个程序比较符合你所想要的。