Skip to content

Instantly share code, notes, and snippets.

@abraithwaite
Created November 29, 2017 04:58
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 abraithwaite/f9d5bbcc7ef4af8962006c1f30039a6d to your computer and use it in GitHub Desktop.
Save abraithwaite/f9d5bbcc7ef4af8962006c1f30039a6d to your computer and use it in GitHub Desktop.
20:57:08 $ curl -v 'http://www.google.com/' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36' --compressed > /dev/null
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 172.217.6.36...
* TCP_NODELAY set
* Connected to www.google.com (172.217.6.36) port 80 (#0)
> GET / HTTP/1.1
> Host: www.google.com
> Accept: */*
> Accept-Encoding: deflate, gzip
> User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36
>
< HTTP/1.1 302 Found
< Location: https://www.google.com/?gws_rd=ssl
< Cache-Control: private
< Content-Type: text/html; charset=UTF-8
< P3P: CP="This is not a P3P policy! See g.co/p3phelp for more info."
< Date: Wed, 29 Nov 2017 04:57:08 GMT
< Server: gws
< Content-Length: 231
< X-XSS-Protection: 1; mode=block
< X-Frame-Options: SAMEORIGIN
<
{ [231 bytes data]
100 231 100 231 0 0 4097 0 --:--:-- --:--:-- --:--:-- 4125
* Connection #0 to host www.google.com left intact
20:57:32 $ curl -v 'http://www.google.com/' > /dev/null
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 172.217.6.36...
* TCP_NODELAY set
* Connected to www.google.com (172.217.6.36) port 80 (#0)
> GET / HTTP/1.1
> Host: www.google.com
> User-Agent: curl/7.54.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Wed, 29 Nov 2017 04:57:32 GMT
< Expires: -1
< Cache-Control: private, max-age=0
< Content-Type: text/html; charset=ISO-8859-1
< P3P: CP="This is not a P3P policy! See g.co/p3phelp for more info."
< Server: gws
< X-XSS-Protection: 1; mode=block
< X-Frame-Options: SAMEORIGIN
< Accept-Ranges: none
< Vary: Accept-Encoding
< Transfer-Encoding: chunked
<
{ [725 bytes data]
100 11047 0 11047 0 0 167k 0 --:--:-- --:--:-- --:--:-- 168k
* Connection #0 to host www.google.com left intact
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment