Here’s a code snippet that uses your FoxyProxy account with curl.
This example connects to https://icanhazip.com through a proxy server with your proxy username and password. Be sure to replace username, password, servername.getfoxyproxy.org 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 (icanhazip.com) 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 username:firstname.lastname@example.org:3128 http://icanhazip.com
The output of this code is the response made by the proxy server (in this case, the IP address of the proxy server since http://icanhazip.com returns the IP address of the caller).
Please familiarize yourself with http://icanhazip.com so you understand the output.