Nginx: using sub-request call to make external server API POST response
Roman Arutyunyan
arut at nginx.com
Fri Jul 26 06:41:10 UTC 2019
Hi,
On Fri, Jul 26, 2019 at 12:05:28PM +0530, Govinda Rajulu wrote:
> Hi Team,
> Can anyone please share some pointer on subrequest call for making POST
> API external server call?
>
> nginx config:
> location = /config_uri {
> proxy_pass http://external-server/config;
> }
>
> Thanks,
> Govinda P
Use proxy_method and proxy_set_body:
http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_method
http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_set_body
--
Roman Arutyunyan
More information about the nginx-devel
mailing list