You should have a variable HTTP_PROXY
in your environment containing all you need, for instance :
HTTP_PROXY = http://username:password@proxyserver.domain.com
Then, you should have a method where you can pass this string, or if you don't, some parsing will do the trick.