Skip to content

Instantly share code, notes, and snippets.

@xxdesmus
Last active January 4, 2016 01:29
Show Gist options
  • Save xxdesmus/8548677 to your computer and use it in GitHub Desktop.
Save xxdesmus/8548677 to your computer and use it in GitHub Desktop.
Hacker News HTTP -> HTTPS
curl -v -o /dev/null http://news.ycombinator.com
* About to connect() to news.ycombinator.com port 80 (#0)
* Trying 198.41.190.47...
* Connected to news.ycombinator.com (198.41.190.47) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: news.ycombinator.com
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Server: cloudflare-nginx
< Date: Tue, 21 Jan 2014 21:21:11 GMT
< Content-Type: text/html
< Transfer-Encoding: chunked
< Connection: keep-alive
< Set-Cookie: __cfduid=d1aae7afd1bf154b3b497d1a75f1904c31390339271719; expires=Mon, 23-Dec-2019 23:50:00 GMT; path=/; domain=.ycombinator.com; HttpOnly
< Location: https://news.ycombinator.com/
< CF-RAY: f070d803fd90296
* Connection #0 to host news.ycombinator.com left intact
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment