Forum Moderators: coopster
e.g. I can tell the script to go to www.example.com. This way it will go to www.example.com on port 80 for http. In my company this traffic will drop on the firewalls because direct internet access isn't allowed. To follow the security policy I will have to go through the proxy. To use the proxy I need to send a username and password to the proxy on port 8080. When my authentication is successful I can fetch www.example.com on the Internet.
This page [php.net] in the php manual talks about using headers to authenticate. I think you're answer lies there, especially in the user comments.
Tim