curl-library
Re: cookie and CURLOPT_COOKIEFILE
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 17 Sep 2003 07:55:30 +0200 (CEST)
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/sfReceived on 2003-09-17