Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rout HTTP request from intranet through proxy and out

Status
Not open for further replies.

asj123

Programmer
Mar 2, 2005
3
NO
We have an application running on the intranet that requests a xml feed from the internet. Traffic from the intranet needs to go through a proxy. Preferably, we don't want to programmatically change the client (as it's not our code area). I heard that there might be a way to set up php.ini to let http request go through a proxy.

Does anyone have an idea about this? Or is the only way to programmatically set the proxy? Can I possibly use fopen() with proxy?

Thanks for any help on this :)
 
I found this on a site

putenv("http_proxy=$PROXY_URL:$PROXY_PORT");
$result = shell_exec("wget -q -O - $url");

I am wandering if I can use something like this, but I'm not familiar with the http_proxy environmentvariable.

Would this be a way to solve the problem? Any experience on this?
 
Ok, if all the above questions were to complicated or unclear, I have now the following question.

We would rather not prefer to do any changes in the application. I have heard that you can set something like a http_proxy variable in php.ini.

I have no experience on this.
Could someone please help me on this. Is this true? How can I specify it.

Thanks again :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top