摘要:PHP有三种方法可以模拟POST提交,分别为curl、socket、file_get_contentscurl方式:/*** Curl版本* 使用方法:* $post_string = "app=request&version=beta";* request_by_curl('http://facebook.cn/restServer.php',$post_string);*/function request_by_curl($remote_server,$post_string){ $ch = curl_init(); curl_setopt($c 阅读全文