Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] How is the Request Body handled by the Jetty Server for DELETE / GET requests ?

Thank you Peter. Could you please point me to a reference or example code where the HTTP POST method has been overridden using X-HTTP-Method-Override header ? Shall need this for intermediary proxies/firewalls.

Thanks and Regards,
Sonali

On Sat, Aug 17, 2019 at 3:40 AM Peter Boughton <jetty@xxxxxxxxxxxxxxxxx> wrote:
With regards to the intermediary issue Joakim mentioned, a non-standard
but common solution is to send a POST with an X-HTTP-Method-Override header.

When the header is present, its value is simply used instead of the
request method, the specifics of which depend on your webapp's request
processing logic (i.e. this isn't a Jetty feature; it requires code to
be written, but hopefully only two lines in a single location).

Obviously this is only feasible when you can alter/instruct the client
to send the request in this way, but it can help when you have an API
used by developers stuck behind restrictive corporate firewalls.

Back to the top