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;} ?>
复制代码