I’m trying to connect to a proxy server using PHP CURL method. The proxy IP is a hidemyass.com. I get a blank page when I try using the following script, am I doing something wrong?
The first thing to do is add some error checking so you can report any errors cURL may report. After doing that and testing your script, I saw it was timing out. Since proxies can be slow, I increased the timeout with no luck. So I checked the proxylist on the site you specified and I didn’t see that proxy IP listed… so it seems you may have a bad proxy.
You also didn’t specify the port for the IP. Many, if not most proxies use ports other than 80. You also have to pay attention to whether it’s an HTTP proxy or a SOCKS proxy. If it’s HTTP, you don’t have to worry about setting the cURL option as HTTP is the default.