Le 26/03/2025 à 15:48, Laurent Bercot a écrit :
>
>> Sorry for being slightly off-topic. I'm essentially lurking on
>> this list. I find this discussion intriguing because it is the first
>> time I read about an actual implemention of the PUT, DELETE and PATCH
>> methods, which, AFAIK, do not have HTML interfaces, and, therefore
>> are not implemented in browsers.
>
> "actual implementation" may be overstating it.
> All the current git head of tipidee (release coming soon-ish) does is
> not reject PUT, DELETE and PATCH as soon as it reads the HTTP request
> line. It waits until it has identified a resource, and if the resource
> is a CGI script, it proceeds with the request - else it still rejects it.
>
> There's no plan to do anything further at this time. As you said, these
> methods are not used by browsers, they're only used by HTTP APIs, so
> actual work will be performed by the backend. But passing on the
> requests to the backend can be done by tipidee at no additional cost,
> so I added it.
Sure.
I was very intrigued and it made me dig a little into the question,
I now understand it makes sense to support these PUT, DELETE and PATCH
requests in a general-purpose web server, because they can be generated
by scripts, if not by static HTML pages. I had never thought of it (~:
-- Didier
Received on Wed Mar 26 2025 - 17:08:49 CET