cURL / Mailing Lists / curl-users / Single Mail

curl-users

multiple URL in command lines means pipelining?

From: hgiuh ghj <h106262_at_hotmail.com>
Date: Sat, 23 Aug 2008 17:14:29 +0000

Hello,

I have a question about putting multiple URLs in the curl command line.

If I execute curl http://example.com/ http://example.com/footer.jpeg (Assuming that footer.jpeg is the part of the index.html's example.com code)

What is the behavious of curl ?

Does he send 2 requests at the same time without waiting for any reply from the server (pipelining)

Does he send the request for http://example.com, waits for the reply, then request the http://example.com/footer.jpeg's request (multi requests over the same TCP connection) ?

Does he opens 2 TCP connections for a request/reply pair (multi requests over multi TCP connections ?

If I want to imitate the behavious of a common browser, which command have I to use :

curl http://example.com/ http://example.com/footer.jpeg ?
curl http://example.com/ & http://example.com/footer.jpeg ?
curl http://example.com/ ; curl http://example.com/footer.jpeg ?

Regards,
David

_________________________________________________________________
Plus besoin de clé usb ! Stockez votre musique en ligne gratuitement !
http://www.windowslive.fr/skydrive/
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2008-08-23