Skip to content

Instantly share code, notes, and snippets.

@inaz2
Created July 21, 2014 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inaz2/fb306e4811e00d46ffff to your computer and use it in GitHub Desktop.
Save inaz2/fb306e4811e00d46ffff to your computer and use it in GitHub Desktop.
curlで短縮URLの解決
$ curl -IL http://t.co/kzZyfMkRFl
HTTP/1.1 301 Moved Permanently
cache-control: private,max-age=300
content-length: 0
date: Mon, 21 Jul 2014 13:32:44 GMT
expires: Mon, 21 Jul 2014 13:37:44 GMT
location: http://htn.to/jKGE4e
server: tfe
set-cookie: muc=a00e470a-8304-4e1d-b87d-597a02b0a98f;Domain=t.co;Expires=Sat, 02-Jul-2016 13:32:44 GMT
HTTP/1.1 301 Moved Permanently
Date: Mon, 21 Jul 2014 13:32:45 GMT
Location: http://inaz2.hatenablog.com/entry/2014/07/21/124857
Content-Length: 317
Content-Type: text/html
Vary: Accept-Encoding,User-Agent
HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Date: Mon, 21 Jul 2014 13:32:45 GMT
ETag: ebe0e0bdac1bf7f3f072b290ade2766cbaa75021
P3P: CP="OTI CUR OUR BUS STA"
Server: nginx
Vary: User-Agent
X-Content-Type-Options: nosniff
X-Dispatch: Hatena::Epic::Blogs::Entry#permalink
X-Frame-Options: DENY
X-Page-Cache: miss
X-Revision: 65082fc33dfb1308ea1d6b3f7edd52a7
X-Runtime: 0.132983
X-XSS-Protection: 1
Connection: keep-alive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment