Code Sample
Explore Rapidproxy code samples for using residential proxies with cURL, Python, Node.js, Puppeteer, and Java. Learn how to configure proxy authentication and integrate proxies into your applications.
1. General Usage & How to Read These Examples
2. cURL Examples
Dynamic Residential Proxy — Username & Password
curl -x http://YOUR_USERNAME:YOUR_PASSWORD@YOUR_PROXY_HOST:YOUR_PORT https://example.comDynamic Residential Proxy — IP Whitelist (no credentials)
curl -x http://YOUR_PROXY_HOST:YOUR_PORT https://example.comStatic Residential Proxy
3. Python Example (requests library)
With Username & Password Auth
With IP Whitelisting Only
4. Node.js Example (axios)
With Username & Password Auth
With IP Whitelisting Only
5. Puppeteer Example (Headless Browser)
With Username & Password Auth
6. Java Example (Apache HttpClient)
With Username & Password Auth
7. Tips for Using Proxies in Code
Protocol Support
Sticky Sessions (Dynamic Proxies)
IP Whitelist
8. Troubleshooting
9. Security Notes
Last updated
