Have u tryed using fopen?

http://uk.php.net/manual/en/function.fopen.php

There is also a comment on how to use a proxy server there.