Re: Testing Response of A Proxy with PHP?

From: Date: Sun, 26 Sep 2004 21:29:44 +0000
Subject: Re: Testing Response of A Proxy with PHP?
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-197908@lists.php.net to get a copy of this message
* and then Marek Kilimajer declared.... > >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); > } Okay, thanks marek, i can take it from there ;-) Im tired, its past my bedtime, i'll check the manual in the morning and work on your code. Thanks very, very much! > Even if the server is up that does not mean proxy is working. Yep, i get it. THanks.. -- Nick W

« previous php.general (#197908) next »