I have a simple whois script
if($conn = fsockopen ($whois_server, 43)) { fputs($conn, $domain."\r\n"); while(!feof($conn)) { $output .= fgets($conn, 128); } fclose($conn); return $output; }
$ whois_server = whois.afilias.info; // whois server for information domains
but I want to run through a proxy. So I need to connect to the proxy -> then connect to the whois server -> and then make a request. Something like that?
$fp = fsockopen($ip,$port); fputs($fp, "CONNECT $whois_server:43\r\n $domain\r\n");
But this will not work, I do not know if I will make the second connection correctly.
source share