Setup Guides · 1 min read

cURL and wget Proxy Configuration: Command Line Guide

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

NobleProxy Team · Updated

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.nobleproxy.com:8080 https://httpbin.org/ip

With Authentication

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

SOCKS5 Proxy

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

SOCKS5 with DNS Resolution

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

wget Commands

Environment Variables

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

Direct Flag

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

Verify Connection

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

Should return the proxy's IP address.

#cURL #wget #command-line

A dedicated proxy for every account you run.

View pricing