cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Connection times out after first curl_easy_perform call

From: John Vorwald <john_vorwald_at_msn.com>
Date: Thu, 14 Dec 2006 10:23:16 -0500

Thank your for the additional clarification to re-use the handle. I found a
programming error, I extracted the balance url link from the logon page, but
did not append the "https/..." that isn't included the extracted url. With
the corrected extracted url, I can access the balance page for further
processing, all using a single connection.

John

>From: Daniel Stenberg <daniel_at_haxx.se>
>Reply-To: libcurl development <curl-library_at_cool.haxx.se>
>To: libcurl development <curl-library_at_cool.haxx.se>
>Subject: Re: Connection times out after first curl_easy_perform call
>Date: Thu, 14 Dec 2006 13:37:03 +0100 (CET)
>
>On Thu, 14 Dec 2006, John Vorwald wrote:
>
>>Thank you for the feedback about the server closing the connection. I
>>looked more at the output from the command line statemenys, and noticed
>>that the connection was closed after the first step for the command line.
>>The second step created a new connection. I'll modify the C++ code to use
>>two connections.
>
>There's really no need to do that. Just re-use the easy handle (as much as
>possible) and then libcurl will use persistent connections when it can, and
>create new connections when it has to.
>
>--
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-12-14