curl / Mailing Lists / curl-library / Single Mail


Re: http_proxy environment variable

From: Colin Ngam via curl-library <>
Date: Thu, 13 Sep 2018 13:22:24 +0000

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

Thanks - colin

On 9/13/18, 8:18 AM, "Daniel Stenberg" <> 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



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.

Received on 2018-09-13