Protocols

Residential proxies support HTTP, HTTPS, and SOCKS5 formats

HTTP

Here is a cURL example for the HTTP protocol:

curl -x "http://SPusername:[email protected]:7000" "https://ip.smartproxy.com/json"

HTTPS

Using this protocol will encrypt your connection. Here is a cURL example for the HTTPS protocol:

curl -x "https://SPusername:[email protected]:7000" "https://ip.smartproxy.com/json"

SOCKS5

To use the SOCKS5 protocol you simply need to specify that in the tool or language you use. For example, this is a cURL command using SOCKS5:

curl -x "socks5h://user-SPusername-session-1:[email protected]:7000" "https://ip.smartproxy.com/json"

The only difference between an HTTP cURL command is the socks5h:// (mind the letter h, as it specifies that hostnames are not resolved locally) added before the endpoint.

Country endpoint support

🚧

Note that you have to use the gate.smartproxy.com endpoint to use SOCKS5. Country endpoints like us.smartproxy.com will not work!

You can instead target specific locations by specifying the location in your username using the Single backconnect entry node method. For example, this cURL command targets the US location:

curl -U user-SPusername-country-us:SPuserpass -x socks5h://gate.smartproxy.com:7000 https://ip.smartproxy.com/json

Tool support

🚧

  • To get a sticky SOCKS5 proxy in a tool, you must use a session parameter, othersiwe, the proxy will always rotate even with a sessionduration parameter.
  • The session ID, can be defined by any string of your choice. More on that can be found on the Building a backconnect proxy page in the Sticky session section.

Support

Need help or just want to say hello? Our customer support is available 24/7. You can also reach us anytime via email at [email protected].

Feedback

Can't find what you're looking for? Request an article!
Have feedback? Share your thoughts on how we can improve.