cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: cookie and CURLOPT_COOKIEFILE

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 17 Sep 2003 07:55:30 +0200 (CEST)

On Tue, 16 Sep 2003, Jerry G. Chiuan wrote:

> In order to receive cookie from server and use it in subsequent requests, we
> need to enable cookie parser w/ CURLOPT_COOKIEFILE what happens if the
> filename we specify has existed?

As documented, you give libcurl a file name to read existing cookies from. If
the file exists, libcurl will try to read cookies from it.

> cuz I don't want to ensure the filename does not exist before using it

And you can't think of a single file name that is next to guaranteed to never
exist?

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-09-17

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET