Welcome! Log In Create A New Profile

Advanced

Re: Converting POST into GET

Reinis Rozitis
February 15, 2015 10:16AM
> I need (as part of a cache busting exercise) to convert a POST into a GET
> with the same URI parameters. ( The URL is currently a GET, but a proxy I
> have to subvert is mangling things :( There is no true POST data).

> Is there an Nginx configuration that would do this? I tried setting
> $request_method but that caused a configuration error.

It's a bit unclear what you mean by "I have to subvert is mangling things"
but you can change the method for proxied requests with proxy_method (
http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_method )

rr

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Converting POST into GET

Ian February 14, 2015 03:26PM

Re: Converting POST into GET

Reinis Rozitis February 15, 2015 10:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 226
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready