curl-users
Re: Disabling keepalive not working?
Date: Sat, 20 Apr 2013 01:34:43 +0200
Hi,
maybe this is a better example:
# curl --verbose --no-keepalive --output /dev/null
http://i1.nyt.com/images/misc/nytlogo.gif --output /dev/null
http://i1.nyt.com/images/misc/nytlogo379x64.gif
* Adding handle: conn: 0x1791b00
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x1791b00) send_pipe: 1, recv_pipe: 0
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0* About to connect() to i1.nyt.com port 80 (#0)
* Trying 80.239.221.19...
* Connected to i1.nyt.com (80.239.221.19) port 80 (#0)
> GET /images/misc/nytlogo.gif HTTP/1.1
> User-Agent: curl/7.30.0
> Host: i1.nyt.com
> Accept: */*
>
< HTTP/1.1 200 OK
* Server Apache is not blacklisted
< Server: Apache
< Last-Modified: Tue, 15 May 2001 14:58:26 GMT
< Accept-Ranges: bytes
< Content-Length: 2961
< nnCoection: close
< Content-Type: image/gif
< Cache-Control: private, max-age=691157
< Expires: Sat, 27 Apr 2013 23:32:03 GMT
< Date: Fri, 19 Apr 2013 23:32:46 GMT
< Connection: keep-alive
<
{ [data not shown]
100 2961 100 2961 0 0 32164 0 --:--:-- --:--:-- --:--:--
32538
* Connection #0 to host i1.nyt.com left intact
* Found bundle for host i1.nyt.com: 0x1792280
* Re-using existing connection! (#0) with host i1.nyt.com
* Connected to i1.nyt.com (80.239.221.19) port 80 (#0)
* Adding handle: conn: 0x1791b00
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x1791b00) send_pipe: 1, recv_pipe: 0
> GET /images/misc/nytlogo379x64.gif HTTP/1.1
> User-Agent: curl/7.30.0
> Host: i1.nyt.com
> Accept: */*
>
< HTTP/1.1 200 OK
* Server Apache is not blacklisted
< Server: Apache
< nnCoection: close
< Last-Modified: Fri, 25 Mar 2011 19:37:16 GMT
< Accept-Ranges: bytes
< Content-Length: 3422
< Content-Type: image/gif
< Cache-Control: private, max-age=140264
< Expires: Sun, 21 Apr 2013 14:30:31 GMT
< Date: Fri, 19 Apr 2013 23:32:47 GMT
< Connection: keep-alive
<
{ [data not shown]
100 3422 100 3422 0 0 96037 0 --:--:-- --:--:-- --:--:--
96037
* Connection #0 to host i1.nyt.com left intact
Again, I am not expecting:
> < Connection: keep-alive
and
> * Re-using existing connection! (#0) with host i1.nyt.com
-- Regards, Igor ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2013-04-20