cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: cURL config file

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 16 Jan 2009 15:49:22 +0100 (CET)

On Fri, 16 Jan 2009, Kuzilla, Daniel J. wrote:

> In summary: I'm attempting to run an application, that will pass user
> specified parameters through Perl, which will invoke cURL, which will then
> make a connection to the outside world.
>
> When cURL is invoked, I need to pass our proxy server information along with
> it to get through to the outside.
>
> That's seems simple enough to do from the command line with the '--proxy"
> option, but I can't do that when Perl invokes cURL behind the scenes.

Well, perl code is plain text files so adding a "--proxy" in a suitable place
isn't always very hard...

Are you sure it uses the curl tool and not libcurl via a perl binding or
similar?

> Is there a cURL config file that I can create somewhere that can pass
> that type of information along when cURL is called in the background?

Yes, $HOME/.curlrc is used by default (but can be disabled with options).

> The software vendor I'm working with mentioned a .curlrc file, but didn't
> have any details.

Try "curl --manual" and search for "curlrc".

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-01-16