Choosing an HTTP Proxy: Protocol, Auth and Connection Behavior

HTTP proxy basics that decide a fit: the CONNECT tunnel, per-connection rotation, authentication format and concurrency accounting.

Choose an HTTP proxy by how your client opens tunnels, authenticates and reuses connections. Then check what the plan measures. This guide explains those choices for Node4 and links to the relevant setup details.

TL;DR

  • An HTTP proxy carries HTTPS traffic through an HTTP CONNECT tunnel; both the proxy and your client need to support that.
  • Plain HTTP gets a new exit per request on a rotating gateway; an HTTPS CONNECT tunnel or a SOCKS5 connection holds one exit for its whole life, so a keep-alive client reuses an exit across many requests.
  • Username and password work on every product from any network. Connecting without credentials, or with an empty password on a rotating gateway, works only from a whitelisted IP address.
  • A concurrent-connection limit, a request count and a data allowance measure three different things; do not substitute one for another.

Why protocol support isn't the whole answer

HTTP proxy support tells you how your client reaches the proxy. It does not tell you whether the exit stays fixed, how a target responds, or what counts against your plan's limit. Those are the decisions this guide walks through; for whether HTTP or SOCKS5 is the right transport for your client in the first place, see HTTP vs SOCKS5 and the cross-vendor SOCKS5 availability comparison, which this guide does not repeat.

What decides an HTTP proxy fit

  • CONNECT support: Confirm your client issues an HTTP CONNECT request for HTTPS destinations and that the proxy answers it; a proxy that only relays plain HTTP cannot carry HTTPS traffic through the same path.
  • Authentication mode: Decide between username and password (works from any network) and an IP whitelist (works only from addresses you have registered). Use the targeting syntax for your gateway, then verify the exit: Rotating Datacenter and Rotating Unmetered support country targeting, and residential also supports state and city targeting. A mistyped option does not always produce an error, so check the targeting examples before you build on one.
  • Rotation boundary: Establish whether the exit changes per request, per connection, or on a sticky-session timer. A keep-alive HTTP client behaves differently from a one-shot script against the same gateway.
  • Concurrency accounting: Check whether a limit applies to simultaneous connections, requests, or transferred data; those units are not interchangeable.
  • Target-level validation: Evaluate the returned content, not just the connection result. A successful CONNECT tunnel does not prove a successful collection job.

HTTP proxy options at a glance

ProductCredential mode (any network)IP-whitelist mode (registered source IP only)Exit boundary on HTTPBilling unit
Dedicated datacenterUsername and passwordNo credentialsFixed for the life of the planPer IP, per month
Shared datacenterUsername and passwordNo credentialsFixed, shared with other customersPer proxy, per month
Rotating DatacenterUsername and password; targeting rides in the usernameNo credentials for an untargeted exit, or the username with an empty password to keep targetingNew exit per plain-HTTP request; one exit per HTTPS CONNECT tunnel; sticky session up to 30 minutes on a session idPer GB
Rotating UnmeteredSame as Rotating DatacenterSame as Rotating DatacenterSame exit boundary as Rotating DatacenterPer concurrent connection
ResidentialUsername and password; targeting rides in the usernameNo credentials for an untargeted exit; country, state, city or session targeting still needs credentialsBest-effort, up to 30 minutes on a session idPer GB

The two modes are alternatives, not layers: valid credentials are accepted from anywhere, and a connection without them is accepted only from a whitelisted address. Proxy authentication is the full reference.

Protocol support does not erase these differences. You can configure an HTTP client correctly and still choose the wrong product for the authentication model or the exit boundary your job needs.

The CONNECT tunnel is what makes HTTPS work through an HTTP proxy

An HTTP proxy reaches an HTTPS destination by opening a CONNECT tunnel: your client asks the proxy to open a raw connection to the target, then runs TLS end to end through it. The proxy never sees the decrypted traffic; it only relays bytes once the tunnel is open. Confirm your library actually does this rather than attempting plaintext HTTP against an https:// URL, which fails differently depending on the client.

# PROXY_URL comes from your environment, e.g. http://USERNAME:PASSWORD@HOST:PORT.
# Drop USERNAME:PASSWORD@ only if this machine's IP is on your whitelist.
: "${PROXY_URL:?Set PROXY_URL to your proxy endpoint}"
: "${TARGET_URL:?Set an authorized HTTPS destination}"

curl -q --silent --show-error \
  --noproxy '' \
  --proxy "$PROXY_URL" \
  --connect-timeout 10 \
  --max-time 30 \
  --write-out 'proxy_connect=%{http_connect} http_status=%{http_code}\n' \
  --output response.body \
  "$TARGET_URL"

-q stops a local .curlrc from changing the request, and --noproxy '' stops a NO_PROXY variable from routing around the proxy you are testing. Keep the credential in the environment rather than typing it into the command, where it lands in shell history.

proxy_connect is the proxy's reply to the CONNECT request, separate from http_status, which is the destination's answer after the tunnel opened. A failed CONNECT means the proxy could not establish the tunnel to the target: a 407 there is an authentication problem, but other failures can mean the target refused or did not answer the proxy, not that the proxy service is faulty. A http_status failure happened past the tunnel, at the target.

Exit boundary depends on keep-alive, not just the product

On Node4's rotating gateway, plain HTTP gets a new exit for each request, because the upstream transport disables keep-alive on that path. An HTTPS CONNECT tunnel or a SOCKS5 connection gets one exit for the life of that connection, so a client that reuses connections (requests.Session, most browsers, Node's default HTTP agent) will see the same exit across many requests inside one tunnel. Neither behavior is "every request" or "every connection" universally; it depends on which path your client takes. Read the full mechanism in how long a rotating proxy keeps the same IP address before assuming either default.

A sticky session id overrides both defaults and holds one exit for up to 30 minutes from first assignment on the rotating gateway, regardless of request volume. Track the assignment time, not the latest request, when planning a task boundary.

Two authentication modes, on every product

Node4 supports two authentication modes on every product: username and password, or an IP whitelist. Use credentials by default. The credential-free and empty-password behaviors below apply only when the connection comes from an IP address you have whitelisted:

  • Username and password (any product, any network): one account credential works on shared and dedicated datacenter, Rotating Datacenter, Rotating Unmetered and residential. On the gateway products, country, city and sticky-session targeting ride in the username as hyphen-separated segments.
  • Shared and dedicated datacenter, from a whitelisted address: connect with no username or password.
  • Rotating Datacenter and Rotating Unmetered, from a whitelisted address: send nothing for an untargeted exit, or the username with an empty password to keep country or session targeting without the secret.
  • Residential, from a whitelisted address: send nothing for an untargeted, freely rotating exit. Targeting a country, state, city or session still authenticates with credentials.

From an address that is not whitelisted, a connection without valid credentials gets 407. Targeting segments differ by gateway, so do not copy one product's username syntax onto another. On residential a misspelled key returns a 400 naming it. On the rotating gateways a misspelled key returns 407 only straight after the username; later in the username it can change the request without an error, so check the exit after editing targeting. Proxy authentication covers both modes in full, and the targeting examples show each typo case.

Concurrency, requests and data are three separate limits

A concurrent-connection limit caps how many tunnels can be open at once; it says nothing about how fast you can open and close them. A per-GB plan caps transferred data regardless of connection count. On Rotating Unmetered the connection count is the product you buy, and it is enforced: a connection above the plan's count is refused with 429 while that many are open (see Rotating Unmetered connection limits). On the static datacenter plans, quoted thread figures such as the free tier's are fair-use guidance rather than an enforced ceiling. Count open connections in your own client rather than assuming one worker equals one connection; a pooled HTTP client or a browser can hold more than one connection per logical task.

Test before expanding the job

Use the same acceptance workflow for every candidate product. Separate the CONNECT result, the destination's answer, and your application's content check, so a failure has one clear cause.

  • HTTP 407: proxy authentication was not accepted. Check the credential, the targeting segments in the username, and, if you are sending no credentials, whether this machine's IP is actually whitelisted.
  • HTTP 403: read where it appeared. In proxy_connect it is the proxy refusing the tunnel; in http_status it is the destination refusing the request past the tunnel, which does not by itself say whether the cause was the exit address, permissions, or application behavior.
  • HTTP 200 with the wrong content: inspect the body. A login page or an empty template can arrive inside a successful status.
  • Connection errors: separate name resolution, TCP connection, proxy CONNECT negotiation, and TLS failures before retrying anything.

Which HTTP proxy product should you choose?

Start from the exit boundary your application needs, then pick the product that matches; authentication works the same way on all of them. A script with no session state fits static datacenter or untargeted rotating access; a workflow that needs the same exit for a sequence of steps needs a sticky session id; a connection-managed worker pool fits Rotating Unmetered. Compare plans once the shape is settled.

FAQ

Are HTTP proxies compatible with HTTPS websites?

Yes, through an HTTP CONNECT tunnel: the client asks the proxy to open a raw connection to the destination, then runs TLS through it end to end. Confirm your library issues CONNECT for https:// URLs rather than assuming it does.

Does every HTTP request get a different IP?

Not necessarily. On Node4's rotating gateway, plain HTTP gets a new exit per request, but an HTTPS CONNECT tunnel or a SOCKS5 connection holds one exit for the life of that connection, so a keep-alive client reuses it across requests.

Do I need a username and password for an HTTP proxy?

Use them by default: every Node4 product accepts a username and password from any network. You can drop them only by whitelisting the IP address you connect from. A whitelisted connection then needs no credentials for an untargeted exit, while targeting a country, city or session on residential still needs them.

Does a concurrent-connection limit also cap my data transfer?

No. A connection limit and a data allowance are separate measures. Rotating Unmetered caps connections with no byte meter; Rotating Datacenter caps data with no connection limit of its own.

How long does a sticky session hold the same exit?

On Node4's rotating gateway, up to 30 minutes from first assignment, regardless of how many requests you send in that window.

Should I use HTTP or SOCKS5?

It depends on what your client needs to tunnel. See HTTP vs SOCKS5 for the protocol-level trade-off; this guide covers configuring and testing the HTTP path once you have chosen it.