Skip to content

Instantly share code, notes, and snippets.

@skplunkerin
Last active March 27, 2019 15:44
Show Gist options
  • Save skplunkerin/9a801485b18255019ddeef3c73317320 to your computer and use it in GitHub Desktop.
Save skplunkerin/9a801485b18255019ddeef3c73317320 to your computer and use it in GitHub Desktop.
terminal / bash curl -I redirect check ping

Check to see if redirect is from cached browser, or server.

$ curl -I google.com
HTTP/1.1 301 Moved Permanently
Location: http://www.google.com/
Content-Type: text/html; charset=UTF-8
Date: Thu, 13 Dec 2018 20:55:25 GMT
Expires: Sat, 12 Jan 2019 20:55:25 GMT
Cache-Control: public, max-age=2592000
Server: gws
Content-Length: 219
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment