logoalt Hacker News

ollienyesterday at 8:05 PM2 repliesview on HN

I don't think it's an abuse, RFC9110 defines 414 as a response for "refusing to service the request because the target URI is longer than the server is willing to interpret". Since adding a query string involves only adding characters, this seems fine; there's no stipulation as far as I can tell that all pages a server hosts must adhere to the same length. I'd be curious if any well-known clients interpret it that way though, and make caching decisions based on it. As far as I know, they shouldn't.

Obviously it's against the spirit of the thing, but I don't think it's wrong per-se.


Replies

chrismorgantoday at 2:58 AM

I reckon it is still an abuse. I am willing to interpret longer target URIs… so long as they don’t contain a question mark. /no-query-strings is longer than /?.

lucketoneyesterday at 9:50 PM

If the goal is to be misleading, but technically correct, it hits the bullseye

show 1 reply