Forum: NGINX where is the response of subrequest

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ccc727ab2c080fc05e9cac0503d2d179?d=identicon&s=25 Yan Cheng (yan)
on 2008-12-01 12:21
Hi all

When I do subrequest. Where does the response mount?
Can I get the response message, headers and body, from
ngx_http_reqeust_t struct?
If can, then how?

Thanks
Abbd9d5312c5d54114a96a35dc94fdb1?d=identicon&s=25 Valery Kholodkov (Guest)
on 2008-12-01 13:46
(Received via mailing list)
Set the NGX_HTTP_SUBREQUEST_IN_MEMORY flag and examine the content of
r->upstream and r->upstream->buffer in post-subrequest handler.

--
Regards,
Valery Kholodkov

----- Original Message -----
From: "Yan Cheng" <lists@ruby-forum.com>
To: nginx@sysoev.ru
Sent: Monday, December 1, 2008 12:21:44 PM GMT +01:00 Amsterdam / Berlin
/ Bern / Rome / Stockholm / Vienna
Subject: where is the response of subrequest

Hi all

When I do subrequest. Where does the response mount?
Can I get the response message, headers and body, from
ngx_http_reqeust_t struct?
If can, then how?

Thanks
Ccc727ab2c080fc05e9cac0503d2d179?d=identicon&s=25 Yan Cheng (yan)
on 2008-12-02 04:54
Thanks, I get the message. But a bit of late.
I must receive the response message of subrequest before sending the
main request.
Cause the main request is created based on the response message of
subrequest.
Is there any way?

Regards,
Yan

Valery Kholodkov wrote:
> Set the NGX_HTTP_SUBREQUEST_IN_MEMORY flag and examine the content of
> r->upstream and r->upstream->buffer in post-subrequest handler.
>
> --
> Regards,
> Valery Kholodkov
>
This topic is locked and can not be replied to.