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.
Yan C. (Guest)
on 2008-12-01 13: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
Valery K. (Guest)
on 2008-12-01 14: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 K.

----- Original Message -----
From: "Yan Cheng" <removed_email_address@domain.invalid>
To: removed_email_address@domain.invalid
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
Yan C. (Guest)
on 2008-12-02 05: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 K. 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 K.
>
This topic is locked and can not be replied to.