Skip to content

Instantly share code, notes, and snippets.

@laiso
Created January 20, 2016 14:39
Show Gist options
  • Save laiso/3b6d165c09757718a4a2 to your computer and use it in GitHub Desktop.
Save laiso/3b6d165c09757718a4a2 to your computer and use it in GitHub Desktop.

http://q.hatena.ne.jp/1451205850

 curl "http://b.hatena.ne.jp/" -A"Ruby" -vs > /dev/null
*   Trying 59.106.194.17...
* Connected to b.hatena.ne.jp (59.106.194.17) port 80 (#0)
> GET / HTTP/1.1
> Host: b.hatena.ne.jp
> User-Agent: Ruby
> Accept: */*
> 
< HTTP/1.1 503 Service Temporarily Unavailable
< Server: nginx
< Date: Wed, 20 Jan 2016 14:35:35 GMT
< Content-Type: text/html
< Content-Length: 206
< Connection: keep-alive
< 
{ [206 bytes data]
* Connection #0 to host b.hatena.ne.jp left intact
curl "http://b.hatena.ne.jp/" -A"Perl" -vs > /dev/null
*   Trying 59.106.194.17...
* Connected to b.hatena.ne.jp (59.106.194.17) port 80 (#0)
> GET / HTTP/1.1
> Host: b.hatena.ne.jp
> User-Agent: Perl
> Accept: */*
> 
< HTTP/1.1 200 OK
< Server: nginx
< Date: Wed, 20 Jan 2016 14:37:13 GMT
< Content-Type: text/html; charset=utf-8
< Content-Length: 416093
< Connection: keep-alive
< Vary: Accept-Encoding
< Set-Cookie: b=$1$xfGbKpeJ$a23AIEbclM78JNZcV9k59/; expires=Tue, 15-Jan-2036 14:37:13 GMT; domain=hatena.ne.jp; path=/
< Cache-Control: max-age=162
< ETag: 1e9485f1e19e75084b63e4ab5890874f691cbc37
< X-Content-Type-Options: nosniff
< X-Framework: Ridge/0.11
< X-Ridge-Dispatch: Hatena::Bookmark::Engine::Index#default
< X-Runtime: 67ms
< X-View-Runtime: 1ms
< X-Cache: HIT from squid.hatena.ne.jp
< X-Cache-Lookup: HIT from squid.hatena.ne.jp:8080
< Via: 1.1 bookmark2squid10.hatena.ne.jp:8080 (squid/2.7.STABLE6)
< X-Roles: [sd]
< Vary: Accept-Encoding,Cookie,User-Agent
< 
{ [668 bytes data]
* Connection #0 to host b.hatena.ne.jp left intact
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment