cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Sending a Session/Cookie in the Request

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Sat, 22 Nov 2003 22:44:26 +0100 (CET)

On Fri, 21 Nov 2003, The Pope Of Chilli Town wrote:

> > You cannot set two URLs. You need to set one, do an *exec() call, then set
> > the next and do another *_exec() call.
>
> Just out of curiosity, in this situation, would you have to call curl_setopt
> again, or would the previous options persist?

Unless the PHP layer code does something different, all options that are set
on a curl easy handle remain set after each *_exec() call, so you only need to
set the ones you want set to a different value than before.

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
 [[ Do not post private mails to this email address. They won't reach me. ]]
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Received on 2003-11-22