Re:Defining a new HTTP method: HTTP Search (2021)
by 9dev on Sunday May 28, 2023 @02:28AM
(#36101679)
Well. Hyperlinks are part of the spec though, and if you modify them and expect clients to know how to deal with that, you’ll need to modify the specification, and that implies you need to define how those changes affect caching, Proxies, and the security model. There’s a pretty good reason you send credentials in a header, not the URL. What’s my browser supposed to show in the history?
What you’re looking for is a browser extension, not a haphazard URI change.
None of this suggestion is about incorporating all of HTTP's functionality. It's just the situations that you say you know I'm referring to -- verbs, things like authorization headers, a small POST payload.
Expanding the functionality of hyperlinks wouldn't break anything about HTTP. It just allows more requests to be defined in a single line of text (a hyperlink), rather than requiring lines of JavaScript to define. The browser converts the link to the actual HTTP request.