Skip to content
Beginner / 3 min read

How to Use ProxyScrape Residential Proxies with curl on Linux: A Beginner's Guide

Learn how to configure curl to use ProxyScrape residential proxies on Linux. This beginner-friendly tutorial covers authentication, testing, and common troubleshooting.

Linux HTTP(S) Web Scraping Privacy/Anonymity

Overview

ProxyScrape provides residential, datacenter, and mobile proxies with HTTP and SOCKS5 support. If you are new to working with proxies on Linux, curl is one of the simplest tools to get started. This guide shows you how to route curl requests through a ProxyScrape residential proxy using HTTP or SOCKS5.

You will need:

  • A Linux system with curl installed (most distributions include it).
  • A ProxyScrape account with proxy credentials (username, password, host, and port).

Note: ProxyScrape is sometimes misspelled as "Proxyscape". If you are searching for that term, you are in the right place.

Steps

  1. Gather your proxy credentials
    Log in to your ProxyScrape dashboard and navigate to the proxy list. Copy the following details:

    • Host (e.g., proxy.proxyscrape.com)
    • Port (e.g., 8080 for HTTP, 1080 for SOCKS5)
    • Username
    • Password

    The full proxy URL will look like:
    http://username:password@host:port

  2. Test your internet connection without a proxy
    Before using a proxy, verify that curl works:

    curl -I https://httpbin.org/ip
    

    You should see an HTTP 200 response.

  3. Make a request through the HTTP proxy
    Use the -x (or --proxy) flag to specify the proxy:

    curl -x http://username:password@host:port https://httpbin.org/ip
    

    Replace username, password, host, and port with your actual credentials.

  4. Verify the IP address has changed
    Check the origin IP seen by the target server:

    curl -x http://username:password@host:port https://api.ipify.org
    

    The output should be the proxy IP, not your real IP.

  5. Use environment variables for convenience
    Instead of typing the proxy flag each time, set environment variables:

    export http_proxy="http://username:password@host:port"
    export https_proxy="http://username:password@host:port"
    

    Then simply run:

    curl https://api.ipify.org
    

    To make this permanent, add the lines to your ~/.bashrc or ~/.profile (be cautious about storing credentials in plain text).

  6. Try SOCKS5 instead of HTTP
    ProxyScrape also supports SOCKS5. Use the socks5:// scheme:

    curl -x socks5://username:password@host:port https://api.ipify.org
    

    SOCKS5 can be useful for applications that do not handle HTTP proxies well.

  7. Use curl with wget (optional)
    If you also use wget, you can configure it temporarily:

    wget -e use_proxy=yes -e http_proxy=host:port -e proxy_user=username -e proxy_password=password https://httpbin.org/ip
    

Troubleshooting

  • 407 Proxy Authentication Required
    Double-check your username and password. Ensure there are no extra spaces or special characters that need URL encoding.

  • Connection timed out
    Verify the host and port are correct. Check that your firewall or network allows outbound connections to the proxy port. Also confirm your ProxyScrape plan is active.

  • curl: (7) Failed to connect to ...
    This usually means the proxy host or port is unreachable. Try pinging the host or using telnet host port to test connectivity.

  • Environment variables not working
    Make sure you have not set conflicting proxy variables (e.g., all_proxy). You can unset them with unset http_proxy https_proxy and try again.

  • Slow response
    Residential proxies can be slower than datacenter proxies. If speed is critical, try a datacenter proxy from ProxyScrape.

Summary

You have learned how to use curl with ProxyScrape residential proxies on Linux. The key steps are gathering credentials, using the -x flag or environment variables, and verifying the IP change. For beginners, starting with a simple curl command is the easiest way to test and integrate proxies into your workflow. ProxyScrape offers reliable residential, datacenter, and mobile proxies with HTTP and SOCKS5 support, making it a solid choice for Linux users.