Hacker News new | ask | show | jobs
by jdiez17 3084 days ago
They must have changed the response code, because I'm getting HTTP 200 on all requests

  $ curl -I https://permanent-redirect.xyz/pages/1515222320
  HTTP/1.1 200 OK
  Date: Fri, 12 Jan 2018 15:07:09 GMT
  Server: Apache
  Content-Type: text/html; charset=UTF-8
1 comments

That's to be expected.

The idea behind my script is that the URL is encoding the unix time of the first visit to that URL. By starting at the current time and working backwards, the first HTTP 200 you come across should be the current page.

Ah, I see. Yes, that is definitely a smarter way of doing it.