curl - PHP whois via proxy -
This is the PHP script to bring which domain information I have to get it, but when I connect via proxy It does not work, so it does not work. What do I do wrong? Thanks for the help.
$ server = "whois.nic.cz"; $ Domain = "ucedan.cz"; FunctionWhoisServer ($ server, $ domain) {$ proxy = "85.111.25.189:8080"; $ Ch = curl_init (); Curl_setopt ($ CH, CURLOPT_URL, $ server); Curl_setopt ($ CH, CURLOPT_PORT, 43); Curl_setopt ($ CH, CURLOPT_PROXY, $ proxy); Curl_setopt ($ CH, CURLOPT_FOLLOWLOCATION, 1); Curl_setopt ($ CH, CURLOPT_HEADER, 1); Curl_setopt ($ CH, CURLOPT_RETURNTRANSFER, 1); Curl_setopt ($ ch, CURLOPT_TIMEOUT, 30); Curl_setopt ($ CH, CURLOPT_CUSTOMREQUEST, $ domain. "\ R \ n"); $ Data = curl_xac ($ ch); Curl_close ($ ch); $ Return data; }
Comments
Post a Comment