I'm trying to use the stock and stockapi modules on a drupal site that's on an intranet. I'm using drupal 4.7.4 and the matching 4.7.x-1.x versions of the modules. I get the following error in the drupal log:

file_get_contents(http://finance.yahoo.com/d/quotes.csv?s=RHAT&f=snl1c1ohgvd1t1&e=.csv) [function.file-get-contents]: failed to open stream: Connection timed out in /home/wwwpages/blog/modules/stockapi/stockapi.module on line 94.

I am able to get the quote from the command line using wget.

Some searches suggest that the issue is I'm on an intranet and to get access to the outside world, eg. for stock quotes, we need to go via a proxy. This is discussed at this node. The solution there, however, deals with http requests. The stockapi uses file_get_contents($uri) - possible a change since the patch at node 7881 was written.

Anyway, does anyone have any suggestions on how to access stock quotes via drupal in this situation. Is there a way to use PHP::file_get_contents through a proxy?