Using your FoxyProxy Account with curl

  1. Home
  2. Programmatically accessing your Proxy
  3. Using your FoxyProxy Account with curl

Here’s a code snippet that uses your FoxyProxy account with curl.

This example connects to through a proxy server with your proxy username and password. Be sure to replace username, password, and port in this example with your account information.

The curl client connects to the proxy server using HTTP and instructs the proxy server to connect to the final destination ( using HTTPS.

Although this example uses the HTTP proxy server on port 3128, other ports are available (usually 13129) with your account. HTTPS proxy server access is also available on the same ports, which encrypts traffic between your client and FoxyProxy proxy servers. Your account also comes with SOCKS5 proxy server access, typically on port 21. You can find this information by logging into your account at the Control Panel.

curl -s -x

The output of this code is the response made by the proxy server (in this case, the IP address of the proxy server since returns the IP address of the caller).

Please familiarize yourself with so you understand the output.

Related Articles