$url = 'localhost'; $fp = fsockopen($url, 80); $out = "POST /test/mapa.php HTTP/1.0\r\n"; $out .= "Host: $url\r\n"; $out .= "Content-Type: application/x-www-form-urlencoded\r\n"; $out .= "Content-Length:8\r\n"; $out .= "\r\n"; $out .= "system=3\r\n"; $out .= "Connection: Close\r\n\r\n";// fwrite($fp, $out); while (!feof($fp)) { $end .= fgets($fp, 128); } fclose($fp); echo $end;