Yes, you are right. The curl command works but if I write a test program using 
libcurl, libcurl does not automatically look for the variable. See 
https://curl.haxx.se/libcurl/c/CURLOPT_PROXY.html

Thanks - colin

On 9/13/18, 8:18 AM, "Daniel Stenberg" <[email protected]> wrote:

    On Thu, 13 Sep 2018, Colin Ngam via curl-library wrote:

    > Doc says libcurl usings http_proxy if set. I did a simple test and it is
    > ignored.

    My test says differently:

    $ http_proxy=foooo:9999 curl localhost -v
    * Rebuilt URL to: localhost/
    * Uses proxy env variable http_proxy == 'foooo:9999'
    * Could not resolve proxy: foooo
    * Closing connection 0

    --

      / daniel.haxx.se


The information contained in this transmission may be confidential. Any 
disclosure, copying, or further distribution of confidential information is not 
permitted unless such privilege is explicitly granted in writing by Quantum. 
Quantum reserves the right to have electronic communications, including email 
and attachments, sent across its networks filtered through security software 
programs and retain such messages in order to comply with applicable data 
security and retention requirements. Quantum is not responsible for the proper 
and complete transmission of the substance of this communication or for any 
delay in its receipt.

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to