Example:
Http: // 203.156.244.227: 80/cgi-bin/get_score.fcgi is the URL to be proxy, and the parameter is the content body content.
Get method Proxy:
<? PHP $ searchurl = 'HTTP: // 203.156.244.227: 80/cgi-bin/get_score.fcgi? Content = '; If (! Empty ($ _ Get ['content']) {$ searchurl. =$ _ Get ['content'];} echo file_get_contents ($ searchurl);?>
POST method Proxy:
<? PHP $ post_string = "content = ". $ _ post ['content']; echo request_by_post ('HTTP: // 203.156.244.227: 80/cgi-bin/get_score.fcgi ', $ post_string); function request_by_post ($ remote_server, $ post_string) {$ context = array ('HTTP '=> array ('method' => 'post', 'header' => 'content-type: application/X-WWW-form-urlencoded '. "\ r \ n ". 'User-AGENT: firstboy \'s post example beta '. "\ r \ n ". 'content-length :'. strlen ($ post_string) + 1, 'cont Ent '=> $ post_string); $ stream_context = stream_context_create ($ context); $ DATA = file_get_contents ($ remote_server, false, $ stream_context); return $ data ;}?>