cURL / Mailing Lists / curl-users / Single Mail


Keeping the connection open when using multiple URLs

From: Howard Boles <>
Date: Wed, 5 Sep 2007 14:04:55 -0400

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.


I thought that one of the advantages of using cURL over other tools such
as wget was that the connection was always supposed to remain open with
cURL. Can anyone tell me why this is happening? Are there specific
properties of a URL that will cause the connection to close in between
file transfers to multiple URLs?
Received on 2007-09-05