Imagine you need to invoke an endpoint which will always go through a proxy. As an example your company network might have configured through a network proxy. In that can, to invoke via CURL, You just need to do a simple thing.
You just have to add --proxy <Proxy_Host>:<Proxy_Port> at the end of your command.
E.g.,
curl -i -X GET https://<HOST>:<PORT>/test/login.jsp --proxy <Proxy_Host>:<Proxy_Port>
You just have to add --proxy <Proxy_Host>:<Proxy_Port> at the end of your command.
E.g.,
curl -i -X GET https://<HOST>:<PORT>/test/login.jsp --proxy <Proxy_Host>:<Proxy_Port>