PHP Curl's Proxy feature causes no information to be returned

Posted by Grant David Bachman on Stack Overflow See other posts from Stack Overflow or by Grant David Bachman
Published on 2011-01-14T23:53:12Z Indexed on 2011/01/15 1:53 UTC
Read the original article Hit count: 478

Filed under:
|
|

I'm working on a PHP script right now which sends requests to our school's servers to get real-time information about class sizes for different courses. The script runs perfectly fine when I don't use a proxy, returning a string full of course numbers and available seats. However, I want to make this a service for the students, and I'm afraid that if I make too many requests my ip will get blocked. So I'm attempting to do this through a proxy, with no success. As soon as I add the CURLOPT_HTTPPROXYTUNNEL and CURLOPT_PROXY fields to my requests nothing gets returned. I'm not even sure how to troubleshoot it at this point since I'm not getting an error message of any kind. Does anyone know what's going on or how to at least troubleshoot it?

© Stack Overflow or respective owner

Related posts about php

Related posts about curl