Protocols
Explore supported Residential Proxy protocols and learn how to configure HTTP, HTTPS, HTTPS/3, and SOCKS5 connections.
Oxylabs Residential Proxies support HTTP, HTTPS, HTTP/3, and SOCKS5 connection protocols. You can choose the protocol that best fits your scraping stack, HTTP library, or third-party software.
socks5h://pr.oxylabs.io:7777
TCP / UDP
Low-level proxying. Requires username flags for geo-targeting.
HTTP
The standard HTTP protocol is the primary connection method for Oxylabs Residential Proxies that's supported out of the box by all HTTP client libraries, web scraping frameworks, and third-party tools.
Code examples
curl -x pr.oxylabs.io:7777 -U "customer-USERNAME:PASSWORD" https://ip.oxylabs.io/locationimport requests
proxies = {
'http': 'http://customer-USERNAME:PASSWORD@pr.oxylabs.io:7777',
'https': 'http://customer-USERNAME:PASSWORD@pr.oxylabs.io:7777',
}
response = requests.get('https://ip.oxylabs.io/location', proxies=proxies)
print(response.text)<?php
$username = 'USERNAME';
$password = 'PASSWORD';
$proxy = 'pr.oxylabs.io:7777';
$query = curl_init('https://ip.oxylabs.io/location');
curl_setopt($query, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($query, CURLOPT_PROXY, "http://$proxy");
curl_setopt($query, CURLOPT_PROXYUSERPWD, "customer-$username:$password");
$output = curl_exec($query);
curl_close($query);
echo $output;
?>HTTPS
Connecting via HTTPS provides an end-to-end encrypted SSL connection to the proxy entry node. To enable HTTPS proxying, add https:// to your proxy entry point (e.g., https://pr.oxylabs.io:7777). Same applies when using HTTPS with country-specific entry nodes.
Code examples
curl -x https://pr.oxylabs.io:7777 -U "customer-USERNAME:PASSWORD" https://ip.oxylabs.io/locationimport requests
proxies = {
'http': 'https://customer-USERNAME:PASSWORD@pr.oxylabs.io:7777',
'https': 'https://customer-USERNAME:PASSWORD@pr.oxylabs.io:7777',
}
response = requests.get('https://ip.oxylabs.io/location', proxies=proxies)
print(response.text)const axios = require('axios');
axios.get('https://ip.oxylabs.io/location', {
proxy: {
protocol: 'https',
host: 'pr.oxylabs.io',
port: 7777,
auth: {
username: 'customer-USERNAME',
password: 'PASSWORD'
}
}
})
.then(response => console.log(response.data))
.catch(error => console.error(error));HTTP/3 (MASQUE)
Note: Google is a restricted target to use with UDP connection.
Oxylabs Residential Proxies support native UDP and HTTP/3 tunneling via MASQUE (RFC 9298 CONNECT-UDP).
Traditional proxies force traffic through TCP connections (via HTTP CONNECT or SOCKS5), causing HTTP/3 requests to downgrade to HTTP/1.1 or HTTP/2. MASQUE maintains an end-to-end QUIC connection through our residential exit nodes, allowing your client to transmit native UDP traffic directly to modern target destinations.
The MASQUE service runs over QUIC on a dedicated UDP port:
Use cases
Native HTTP/3 Web Scraping: Scrape modern target websites without triggering protocol downgrade flags.
DNS Resolution over UDP: Execute direct DNS queries (
53/udp) via residential IPs.Real-Time UDP Protocols: Route WebRTC, SIP, or gaming traffic requiring true UDP connection.
MASQUE setup
For full setup, configuration, authentication details, see the technical setup guide below.
SOCKS5
Oxylabs Residential Proxies support SOCKS5 connections over TCP and UDP.
For a standard SOCKS5 connection, use socks5h:// with your connection string:
SOCKS5proxy authentication is not supported by Google Chrome. Use Mozilla Firefox or HTTP clients instead.Certain target websites can identify proxy traffic using
SOCKS5. If you encounter connection errors, switch toHTTPorHTTPS.SOCKS5connections do not support country-specific entry points (e.g.de-pr.oxylabs.io) and localization must be used through username-based location parameters.Googleis a restricted target to use withUDPconnection.
Code examples
Allowed proxy target ports
The default configuration of proxy ports includes 80 and 443, designed to accommodate standard HTTP and HTTPS protocols. HTTP/3 (MASQUE) operates on UDP port 50000.
HTTP
TCP
80
HTTPS
TCP
443
HTTP/3 (MASQUE)
UDP
50000
To access other ports, it is necessary to undergo compliance verification, please contact our support.
Last updated
Was this helpful?

