On Wed, Sep 17, 2014 at 9:17 AM, Rich Shepard <[email protected]> wrote: > $ 2>&1 curl -v -s http://grass.osgeo.org/ > /dev/null | cat -n > 1 * Hostname was NOT found in DNS cache > 2 * Trying 140.211.15.75... > 3 * Connected to grass.osgeo.org (140.211.15.75) port 80 (#0) > 4 > GET / HTTP/1.1 > 5 > User-Agent: curl/7.36.0 > 6 > Host: grass.osgeo.org > 7 > Accept: */* > 8 > > 9 < HTTP/1.1 200 OK > 10 < Date: Wed, 17 Sep 2014 16:05:41 GMT > 11 * Server Apache/2.2.16 (Debian) is not blacklisted > 12 < Server: Apache/2.2.16 (Debian) > 13 < X-Powered-By: PHP/5.3.3-7+squeeze19 > 14 < Set-Cookie: CMSSESSID34ee0599=a8h24n5mbtg2vs6f01ds9kq9i6; path=/ > 15 < Expires: Mon, 26 Jul 1997 05:00:00 GMT > 16 < Cache-Control: no-store, no-cache, must-revalidate > 17 < Last-Modified: Wed, 17 Sep 2014 16:05:41 GMT > 18 < Cache-Control: post-check=0, pre-check=0 > 19 < Pragma: no-cache > 20 < Vary: Accept-Encoding > 21 < Connection: close > 22 < Transfer-Encoding: chunked > 23 < Content-Type: text/html; charset=utf-8 > 24 < > 25 { [data not shown] > 26 * Closing connection 0 > > There was a _long_ pause at step 8; about 2 minutes ... and that is the > source of the apparent problem. I tried http://grass.osgeo.org/ then went > off to do something else. When I returned about 4 minutes later the page was > displayed.
Interesting. Try adding timing information to curl. Here's a sample: $ time -p 2>&1 curl --trace-time -v -s http://grass.osgeo.org/ > /dev/null | cat -n 1 11:33:54.413116 * About to connect() to grass.osgeo.org port 80 (#0) 2 11:33:54.413256 * Trying 140.211.15.75... 3 11:33:54.451154 * connected 4 11:33:54.451224 * Connected to grass.osgeo.org (140.211.15.75) port 80 (#0) 5 11:33:54.451318 > GET / HTTP/1.1 6 11:33:54.451318 > User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8y zlib/1.2.5 7 11:33:54.451318 > Host: grass.osgeo.org 8 11:33:54.451318 > Accept: */* 9 11:33:54.451318 > 10 11:33:56.035705 < HTTP/1.1 200 OK 11 11:33:56.035770 < Date: Wed, 17 Sep 2014 18:33:53 GMT 12 11:33:56.035825 < Server: Apache/2.2.16 (Debian) 13 11:33:56.035868 < X-Powered-By: PHP/5.3.3-7+squeeze19 14 11:33:56.035892 < Set-Cookie: CMSSESSID34ee0599=qcijudrgul456a8t5u4gvvpl84; path=/ 15 11:33:56.035913 < Expires: Mon, 26 Jul 1997 05:00:00 GMT 16 11:33:56.035937 < Cache-Control: no-store, no-cache, must-revalidate 17 11:33:56.035991 < Last-Modified: Wed, 17 Sep 2014 18:33:53 GMT 18 11:33:56.036018 < Cache-Control: post-check=0, pre-check=0 19 11:33:56.036043 < Pragma: no-cache 20 11:33:56.036080 < Vary: Accept-Encoding 21 11:33:56.036122 < Connection: close 22 11:33:56.036145 < Transfer-Encoding: chunked 23 11:33:56.036239 < Content-Type: text/html; charset=utf-8 24 11:33:56.036289 < 25 11:33:56.036340 { [data not shown] 26 11:33:56.102827 * Closing connection #0 real 1.69 user 0.00 sys 0.00 Lines 1-4 show curl connecting to the server Lines 5-9 show curl sending the request Lines 10-25 is the response from the server Line 26 shows curl disconnecting from the server That last three lines without line numbers are the output from the 'time' command Regards, - Robert _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
