cURL / Mailing Lists / curl-users / Single Mail


Re: Keeping the connection open when using multiple URLs

From: Dan Fandrich <>
Date: Wed, 5 Sep 2007 11:16:39 -0700

On Wed, Sep 05, 2007 at 02:04:55PM -0400, Howard Boles wrote:
> I?m a new cURL user. In my initial experiments with specifying two URLs in the
> same command line, I?ve noticed that sometimes the connection remains open
> between file transfers to the two URLs, while at other times the connection
> closes after the first file transfer and is re-opened for the second one. This
> always seems to work with certain combinations of URLs, while it always fails
> with other URL combinations.

Some servers don't support persistent connections, and some servers don't
support persistent connections on some URLs. Looking at the headers sent by
the server should tell you whether it's supported on that URL.

>>> Dan

--              The web change of address service
          Let webmasters know that your web site has moved
Received on 2007-09-05