cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to write the password into a file

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 11 Jul 2008 12:33:46 -0700

On Fri, Jul 11, 2008 at 08:03:43PM +0530, Ajeet kumar.S wrote:
> Thank you Dan for your help. I have doubt regarding to password file. Is curl
> supporting to write a password and user name in file and reading from that
> file. Can I create a file? If yes so how I can create using curl api and there
> I can write password and username. How we can use .netrc file.

libcurl supports a .netrc file using the CURLOPT_NETRC option. Read that
and the netrc(5) man page to find out how. The curl client also supports
reading its own configuration file which can be used to set user names
and passwords, which your app could undoubtedly do as well.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-07-11