HTTP proxy

An HTTP proxy is a proxy that works over the HTTP protocol and understands requests to websites.

Updated · Prokso editorial team

An HTTP proxy is made for web traffic. It reads and forwards plain HTTP requests, and for HTTPS sites it opens a “tunnel”: the data inside is encrypted, and the proxy cannot see it.

Almost any program supports this protocol: browsers, scrapers, code libraries. So unless there is a special reason, people start with it.

When something goes wrong, an HTTP proxy replies with a clear error code, for example 407 or 502. What the codes mean is described on the proxy error codes page.

In Prokso the HTTP proxy runs on port 823. How it differs from SOCKS5 is explained on the HTTP proxy page.

How an HTTP proxy handles an HTTPS site

For an address starting with https:// the program does not send the page request to the proxy. It sends a CONNECT command with the site name and port 443. The proxy opens the connection and replies with code 200, after which the already encrypted TLS handshake goes through the tunnel.

Plain http:// addresses work differently: the program sends the full request to the proxy, and the proxy forwards it to the site. That is why on unencrypted sites a proxy can technically see the content, while on HTTPS it sees only the site name.

Where the username and password travel in a request

The credentials go in the Proxy-Authorization header, encoded in Base64. This is not encryption, so do not show that header in logs or screenshots. Most programs build it themselves if you enter a string like http://LOGIN:PASSWORD@gw.prokso.com:823.

In Prokso the address parameters are also passed in the username, for example LOGIN__cr.de;asn.3209. The double underscore and the semicolons are ordinary characters here, but the program must send the username in full, without cutting it.

How to recognize typical mistakes

Code 407 means the proxy did not accept the login: a typo in the username or password, an extra space, or your IP is not on the IP whitelist. If 407 comes back only on some requests, check that all threads use the same string. For diagnosis, run one request through curl with the -v flag: the output shows the proxy's reply to CONNECT.

If port 823 is set in the program as SOCKS5, the connection drops without any code, because the program and the proxy speak different protocols. Also keep in mind the limit of 1000 concurrent connections per plan and plan the number of threads with it.

Further reading

FAQ

Does an HTTP proxy work with HTTPS sites?

Yes. For such sites the proxy opens a tunnel, and the data inside it stays encrypted.

Which should I choose: HTTP or SOCKS5?

HTTP is usually enough for browsers, scrapers and code. SOCKS5 is used when a program works with something other than websites or supports only SOCKS5.

Residential $1.59, mobile $2.50, datacenter $0.65 per GB

Sign up in a minute, get access right after payment.

Create account

Install the Prokso app