Tutorials5 min read

cURL and wget Proxy Configuration: Command Line Guide

How to use proxies with cURL and wget for command-line HTTP requests.

OutreachProxy Team

Proxy Experts

cURL Proxy Setup

Use proxies with cURL for command-line HTTP requests.

TL;DR: Use -x or --proxy flag with cURL. Set HTTP_PROXY environment variable for wget.

cURL Commands

Basic Proxy

curl -x http://proxy.outreachproxy.com:8080 https://httpbin.org/ip

With Authentication

curl -x http://username:password@proxy.outreachproxy.com:8080 https://httpbin.org/ip

SOCKS5 Proxy

curl --socks5 proxy.outreachproxy.com:1080 https://httpbin.org/ip

SOCKS5 with DNS Resolution

curl --socks5-hostname proxy.outreachproxy.com:1080 https://httpbin.org/ip

wget Commands

Environment Variables

export http_proxy=http://username:password@proxy.outreachproxy.com:8080
export https_proxy=http://username:password@proxy.outreachproxy.com:8080
wget https://example.com

Direct Flag

wget -e use_proxy=yes -e http_proxy=proxy.outreachproxy.com:8080 https://example.com

Verify Connection

curl -x http://proxy:port https://httpbin.org/ip

Should return the proxy's IP address.

cURLwgetcommand line

Written by OutreachProxy Team

Proxy Experts

The OutreachProxy team helps businesses scale their cold outreach with reliable static residential proxies. We share our expertise to help you succeed.

Ready to Scale Your Outreach?

Get started with static residential proxies built for cold outreach professionals. From $2.97/month with unlimited bandwidth.

Get Started