Welcome! Log In Create A New Profile

Advanced

Re: Why Subrequests are get only?

Maxim Dounin
March 04, 2019 08:34AM
Hello!

On Sun, Mar 03, 2019 at 09:33:57PM +0000, Maciej.Grochowski@sony.com wrote:

> I am trying to use mirror module for multiple requests, one usecase that I am interested in is sending PUT request to additional/mirror location.
>
> During that process I realized that PUT request became GET.
> When I took deeper look on subrequest function "ngx_http_subrequest(...)" I noticed that new request is always setup as GET.
> I was expecting behavior to be something like:

[...]

> What is the reason that I am missing and make Subrequests suitable for GET only requests?

Subrequests were originally developed to for the SSI include
command, and they are expected to return content of a particular
resource - that is, they are GET.

If you want them to act differently, you can modify the method
after a subrequest is created and/or use the NGX_HTTP_SUBREQUEST_CLONE
flag.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Why Subrequests are get only?

matfriday 356 March 03, 2019 04:36PM

Re: Why Subrequests are get only?

Maxim Dounin 162 March 04, 2019 08:34AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 184
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