News for hackers. Stuff that matters.
Re:Show HN: UrlRoulette – Pass a URL to the next visitor by hk__2 on Saturday April 15, 2017 @05:11PM (#14122884)
A server should respond with the same headers to a HEAD request as to a GET one.
Re:Show HN: UrlRoulette – Pass a URL to the next visitor by tyingq on Saturday April 15, 2017 @05:20PM (#14122924)
They should, but many good sites just don't, for whatever reason. Even ones you know are run by smart people:

  $ curl -I -X HEAD https://redis.io/
  HTTP/1.1 404 Not Found
For this app, being more forgiving is a better idea.
Re:Show HN: UrlRoulette – Pass a URL to the next visitor by jaredsohn on Saturday April 15, 2017 @05:33PM (#14122964)
https://www.stumbleupon.com had a similar issue.
Re:Show HN: UrlRoulette – Pass a URL to the next visitor by Daviey on Saturday April 15, 2017 @05:19PM (#14122919)
SHOULD and DOES are not the same thing.

Returning 405 'Method Not Allowed' on a HEAD isn't unreasonable, and that is the issue we are seeing.

EDIT: did say GET on prior edit.

Re:Show HN: UrlRoulette – Pass a URL to the next visitor by hk__2 on Saturday April 15, 2017 @05:57PM (#14123075)
> Returning 405 'Method Not Allowed' on a GET isn't unreasonable

I think you meant "on a HEAD".

Re:Show HN: UrlRoulette – Pass a URL to the next visitor by Daviey on Saturday April 15, 2017 @06:25PM (#14123181)
er yes, my bad. Fixed