Welcome! Log In Create A New Profile

Advanced

Re: Nginx: using sub-request call to make external server API POST response

Roman Arutyunyan
July 26, 2019 02:42AM
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
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Nginx: using sub-request call to make external server API POST response

Govinda Rajulu 375 July 26, 2019 02:36AM

Re: Nginx: using sub-request call to make external server API POST response

Roman Arutyunyan 145 July 26, 2019 02:42AM



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

Online Users

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