Parallel subrequests

honwel nginx-forum at nginx.us
Wed Dec 25 07:14:41 UTC 2013


hi, Maxim

      It is seem like that ngx_http_subrequest() supports only GET method:

    sr->method = NGX_HTTP_GET;
    sr->http_version = r->http_version;
    ...............
    
    sr->method_name = ngx_http_core_get_method;

    In my application currently, NGINX received a POST request and issue
mutiple subrequests(Parallel) to get combine content by set proxy_pass
location,     but ngx_http_subrequest() not supports POST method, so, What
do I need to pay attention, if i just modify to :
     sr->method = NGX_HTTP_POST
    sr->http_version = r->http_version;
    ...............
    
    sr->method_name = r->method_name;
    ???
   
    thanks a lot!


   best regards
   honwel

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,245707,245819#msg-245819



More information about the nginx mailing list