Nick Wilson wrote:
* and then Marek Kilimajer declared....
OPTIONS * HTTP/1.0
More at http://www.freesoft.org/CIE/RFC/2068/63.htm
oookay... i think i understand the page, but how would i imlement that
$fp = fsockopen ("proxy.server.net", 8080, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br>\n";
} else {
fputs ($fp, "OPTIONS * HTTP/1.0\r\nMax-Forwards: 0\r\n\r\n");
while (!feof($fp)) {
echo fgets ($fp,128);
}
fclose ($fp);
}
You should get something like:
HTTP/1.0 200 Ok
Date: Sun, 26 Sep 2004 20:48:46 GMT
Via: HTTP/1.1 proxy.server.net (Traffic-Server/4.0.18 [c s f ])
Allow: CONNECT, DELETE, GET, HEAD, OPTIONS, POST, PURGE, PUT, PUSH, TRACE
Content-Length: 0
and what would be the difference in that and just pinging the server to
see if it's responding?
Even if the server is up that does not mean proxy is working.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php