Skip to content

Instantly share code, notes, and snippets.

@kovyrin
Created October 6, 2008 23:56
Show Gist options
  • Save kovyrin/15187 to your computer and use it in GitHub Desktop.
Save kovyrin/15187 to your computer and use it in GitHub Desktop.
root@loops:/var/log# curl --HEAD http://127.0.0.1:8000/word/document_url/6417541
HTTP/1.1 302 Moved Temporarily
Connection: close
Date: Mon, 06 Oct 2008 23:55:01 GMT
Set-Cookie: _scribd_session=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo%250ASGFzaHsABjoKQHVzZWR7AA%253D%253D--f04a5432060febfe36092a7e2b74525af0d4a01b; domain=.scribd.com; path=/; expires=Sun, 01 Jan 2017 06:00:00 GMT
Status: 302 Found
Location: http://www.market-research-report.com/Merchant2/merchant.mvc?Store_Code=analysis&AFFIL=scribd2121&Screen=PROD&Product_Code=imtc0264
X-Runtime: 0.01000
Cache-Control: no-cache
Server: Mongrel 1.1.5
Content-Type: text/html; charset=utf-8
Content-Length: 198
root@loops:/var/log# curl --HEAD http://loops.scribd.com/word/document_url/6417541
HTTP/1.1 502 Bad Gateway
Date: Mon, 06 Oct 2008 23:54:23 GMT
Cache-Control: no-cache
Content-Type: text/html
Via: 1.1 scribd.com
Vary: User-Agent,Accept-Encoding
DETAILED QUERY TO BACKEND:
root@loops:/opt/nginx/logs# curl http://127.0.0.1:8000/word/document_url/6417541 -v* About to connect() to 127.0.0.1 port 8000 (#0)
* Trying 127.0.0.1... connected
* Connected to 127.0.0.1 (127.0.0.1) port 8000 (#0)
> GET /word/document_url/6417541 HTTP/1.1
> User-Agent: curl/7.16.4 (i486-pc-linux-gnu) libcurl/7.16.4 OpenSSL/0.9.8e zlib/1.2.3.3 libidn/1.0
> Host: 127.0.0.1:8000
> Accept: */*
>
< HTTP/1.1 302 Moved Temporarily
< Connection: close
< Date: Tue, 07 Oct 2008 03:01:50 GMT
< Set-Cookie: _scribd_session=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo%250ASGFzaHsABjoKQHVzZWR7AA%253D%253D--f04a5432060febfe36092a7e2b74525af0d4a01b; domain=.scribd.com; path=/; expires=Sun, 01 Jan 2017 06:00:00 GMT
< Status: 302 Found
< Location: http://www.market-research-report.com/Merchant2/merchant.mvc?Store_Code=analysis&AFFIL=scribd2121&Screen=PROD&Product_Code=imtc0264
< X-Runtime: 0.01000
< Cache-Control: no-cache
< Server: Mongrel 1.1.5
< Content-Type: text/html; charset=utf-8
< Content-Length: 0
<
* Closing connection #0
DEBUG LOG FROM HAPROXY:
00000000:scribd.com.accept(0007)=0008 from [127.0.0.1:58298]
00000000:scribd.com.clireq[0008:ffff]: GET /word/document_url/6417541 HTTP/1.1
00000000:scribd.com.clihdr[0008:ffff]: User-Agent: curl/7.16.4 (i486-pc-linux-gnu) libcurl/7.16.4 OpenSSL/0.9.8e zlib/1.2.3.3 libidn/1.0
00000000:scribd.com.clihdr[0008:ffff]: Host: 127.0.0.1:8080
00000000:scribd.com.clihdr[0008:ffff]: Accept: */*
00000000:scribd.com.srvrep[0008:0009]: HTTP/1.1 302 Moved Temporarily
00000000:scribd.com.srvhdr[0008:0009]: Connection: close
00000000:scribd.com.srvhdr[0008:0009]: Date: Tue, 07 Oct 2008 03:04:45 GMT
00000000:scribd.com.srvhdr[0008:0009]: Set-Cookie: _scribd_session=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo%250ASGFzaHsABjoKQHVzZWR7AA%253D%253D--f04a5432060febfe36092a7e2b74525af0d4a01b; domain=.scribd.com; path=/; expires=Sun, 01 Jan 2017 06:00:00 GMT
00000000:scribd.com.srvhdr[0008:0009]: Status: 302 Found
00000000:scribd.com.srvcls[0008:0009]
00000000:scribd.com.srvcls[0008:0009]
00000000:scribd.com.srvcls[0008:0009]
00000000:scribd.com.clicls[0008:0009]
00000000:scribd.com.srvcls[0008:0009]
00000000:scribd.com.closed[0008:0009]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment