To use the SOCKS5 protocol you simply need to specify that in the tool or language you are using it on. For example, this is a cURL command using SOCKS5:
curl -U SPusername:SPuserpass -x socks5h://gate.smartproxy.com: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.
Note that you have to use the
gate.smartproxy.comendpoint to use SOCKS5. Country endpoints like
us.smartproxy.comwill 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
To get a sticky SOCKS5 proxy in a tool, you must use a
sessionparameter, othersiwe, the proxy will always rotate even with a
sessiondurationparameter. The session ID, can be defined by any string of your choice. More on that can be found on the Single backconnect entry node page.
Updated 5 days ago