Skip to the content.

Use Proxy Server in cURL

We can specify a proxy server in cURL using the -x or --proxy argument.

Example

$ curl --silent --proxy http://100.64.0.5:8888 https://ipv4.devjugal.com

Source: StackOverFlow