[Home]

Summary:ASTERISK-05679: [patch] app_curl - ability to set proxy
Reporter:Jason Parker (jparker)Labels:
Date Opened:2005-11-22 18:33:32.000-0600Date Closed:2011-06-07 14:10:02
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) app_curl-HEAD-20051122-1615.diff
Description:The proxy at my work here doesn't seem to like the authentication from curl, so I modified app_curl to allow the setting of a variable to set/unset the proxy.

Set(CURL_PROXY=) ;Don't use a proxy
Set(CURL_PROXY="http://location.of.proxy:80/") ;Use the given proxy

The default is to use the currently set http_proxy env variable - this behavior has not changed.

****** ADDITIONAL INFORMATION ******

Disclaimer on file.

Let me know if you'd like me to do this a different way.
Comments:By: Jason Parker (jparker) 2005-11-22 18:41:59.000-0600

Here's a list of stuff that could be set this way.

http://www.phpdig.net/ref/rn11re189.html

Perhaps one could modify this to allow reading from CURL_* variables, and setting CURLOPT_* to that value if it exists?

That way all of the options could be accessable, without being hardcoded.

By: Tilghman Lesher (tilghman) 2005-11-22 22:04:04.000-0600

Why not just Set(ENV(HTTP_PROXY)=http://location.of.proxy:80/) ?

The proxy is unlikely to change between instances, so setting the environmental variable should be quite safe.

By: Jason Parker (jparker) 2005-11-22 22:45:54.000-0600

Agreed.  Let's close this for now then.