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


Re: Navigating website with curl lib

From: Daniel Stenberg <>
Date: Mon, 2 Jul 2007 23:03:44 +0200 (CEST)

On Sun, 1 Jul 2007, fbsd wrote:

> My understanding from reading the libcurl info is each page wanted must be
> gotten with it's own curl_exec and any setopt's done in the first curl_exec
> are in effect for all following curl_exec. Is this correct?


> The CURLOPT_COOKIEJAR saves the cookies on the first curl_exec and all
> following curl_exec use the CURLOPT_COOKIEFILE. Is my understanding correct?

No. cookiejars are saved when the handle is closed.

> Where is the CURLOPT_COOKIEJAR, "-" statement really putting the cookies?

To stdout!

> What kind of debug code can I add to see what is really happening?

Use the command line tool (curl) instead and --trace-ascii for full logging.

> Is there some way to select the LINK on a retrieved page to follow?

"select" a link means getting the URL. And yes, (lib)curl can do that.

> Does libcurl work with framed pages?

libcurl gets URLs with HTTP (and other protocols) it has no clue about frames.

  Commercial curl and libcurl Technical Support:
Received on 2007-07-02