TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Why should hacker news redirect to https url?

1 pointsby critiqabout 12 years ago
http request to news.ycombinator.com redirects secure URL, I can't imagine reason behind it.. is it to avoid some one hijacking browser requests on client side?<p>&#62; GET / HTTP/1.1 &#62; User-Agent: curl/7.19.7 (x86_64-unknown-linux-gnu) libcurl/7.19.7 NSS/3.12.6.2 zlib/1.2.3 libidn/1.18 libssh2/1.2.2 &#62; Host: news.ycombinator.com &#62; Accept: <i>/</i> &#62; &#60; HTTP/1.1 301 Moved Permanently &#60; Server: nginx &#60; Date: Fri, 19 Apr 2013 07:13:39 GMT &#60; Content-Type: text/html &#60; Content-Length: 178 &#60; Connection: keep-alive &#60; Location: https://news.ycombinator.com/

1 comment

vy8vWJlcoabout 12 years ago
It's probably easier than differentiating between logged in and not-logged in, when it is understandably desirable to secure logged in traffic (which had been lacking for some time).<p>Curl can handle the redirect automatically (as well as HTTPS). Try something like:<p>curl -L <a href="http://news.ycombinator.com" rel="nofollow">http://news.ycombinator.com</a><p>or just point it to HTTPS directly.