Skip to content

Instantly share code, notes, and snippets.

@hamishforbes
Created November 14, 2012 16:42
Show Gist options
  • Save hamishforbes/417457900b51d7083acf to your computer and use it in GitHub Desktop.
Save hamishforbes/417457900b51d7083acf to your computer and use it in GitHub Desktop.
2012/11/14 16:30:51 [notice] 32295#0: *292 [lua] [string "content_by_lua"]:6: request start,request: "GET /foo/?foo=1 HTTP/1.1"
2012/11/14 16:30:51 [notice] 32295#0: *292 [lua] [string "content_by_lua"]:10: request done,request: "GET /foo/?foo=1 HTTP/1.1"
2012/11/14 16:30:56 [notice] 32295#0: *292 [lua] [string "content_by_lua"]:4: bar,request: "GET /foo/?foo=1 HTTP/1.1"
2012/11/14 16:30:56 [notice] 32295#0: *292 [lua] [string "content_by_lua"]:6: request start,request: "GET /foo/?foo=2 HTTP/1.1"
2012/11/14 16:30:56 [notice] 32295#0: *292 [lua] [string "content_by_lua"]:10: request done,request: "GET /foo/?foo=2 HTTP/1.1"
2012/11/14 16:31:01 [notice] 32295#0: *292 [lua] [string "content_by_lua"]:4: bar,request: "GET /foo/?foo=2 HTTP/1.1",
hamish@Hamish-MBP ~/elsevier> curln --trace-time -H'Cache-Control: max-stale=1000' "http://localhost:9000/foo/?foo=[1-3]"

[1/2]: http://localhost:9000/foo/?foo=1 --> /dev/null
16:30:51.195299 * Connected to localhost (127.0.0.1) port 9000 (#0)
16:30:51.195434 > GET /foo/?foo=1 HTTP/1.1
16:30:51.195434 > User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5
16:30:51.195434 > Host: localhost:9000
16:30:51.195434 > Accept: */*
16:30:51.195434 > Cache-Control: max-stale=1000
16:30:51.195434 > 
16:30:51.195969 < HTTP/1.1 200 OK
16:30:51.198651 < Server: ngx_openresty/1.2.4.7
16:30:51.199286 < Date: Wed, 14 Nov 2012 16:30:51 GMT
16:30:51.199316 < Content-Type: application/octet-stream
16:30:51.199344 < Transfer-Encoding: chunked
16:30:51.199373 < Connection: keep-alive
16:30:51.199400 < 

[2/3]: http://localhost:9000/foo/?foo=2 --> /dev/null
16:30:51.199757 * Re-using existing connection! (#0) with host (nil)
16:30:51.199865 * Connected to (nil) (127.0.0.1) port 9000 (#0)
16:30:51.199955 > GET /foo/?foo=2 HTTP/1.1
16:30:51.199955 > User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5
16:30:51.199955 > Host: localhost:9000
16:30:51.199955 > Accept: */*
16:30:51.199955 > Cache-Control: max-stale=1000
16:30:51.199955 > 
16:30:56.197207 < HTTP/1.1 200 OK
16:30:56.197370 < Server: ngx_openresty/1.2.4.7
16:30:56.197399 < Date: Wed, 14 Nov 2012 16:30:56 GMT
16:30:56.197552 < Content-Type: application/octet-stream
16:30:56.197629 < Transfer-Encoding: chunked
16:30:56.197725 < Connection: keep-alive
16:30:56.197754 < 
16:30:56.197843 { [data not shown]
100     4    0     4    0     0      0      0 --:--:--  0:00:04 --:--:--     1
16:30:56.198391 * Connection #0 to host (nil) left intact
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment