01The basic request
Give curl the gateway with -x and your proxy login with -U. Residential traffic goes to gw.fullstackproxy.com:47631, datacenter traffic to dc.fullstackproxy.com:38417. Both speak HTTP, HTTPS and SOCKS5 on the same port.
curl -x gw.fullstackproxy.com:47631 \
-U "USERNAME:PASSWORD" \
https://api.ipify.orgThe reply is the IP address the target saw. Run it again and you get a different one: with no session in the username, every new connection rotates.
You can also put the login in the proxy URL. That is the form most other tools expect, so it is worth knowing:
curl -x "http://USERNAME:PASSWORD@gw.fullstackproxy.com:47631" https://api.ipify.org02Pick the country, state or city
Targeting lives in the username. Add flags after your login, separated by dashes. Nothing else in the command changes.
# Exit in Germany
curl -x gw.fullstackproxy.com:47631 -U "USERNAME-country-de:PASSWORD" https://ipinfo.io/json
# Exit in Chicago, Illinois
curl -x gw.fullstackproxy.com:47631 -U "USERNAME-country-us-state-illinois-city-chicago:PASSWORD" https://ipinfo.io/jsonThe full list of flags, and the rules for each, is on the username flags page.
03Keep the same IP
Add -session- and a name you make up. Every request with the same name leaves from the same IP. -lifetime- sets how many minutes it is held, up to 24 hours.
for i in 1 2 3; do
curl -s -x gw.fullstackproxy.com:47631 \
-U "USERNAME-country-us-session-job42-lifetime-30:PASSWORD" \
https://api.ipify.org
echo
doneAll three lines print the same address. Change job42 to anything else and you get a new IP that is then held in the same way.
04SOCKS5
Use the socks5h:// scheme. The h tells curl to let the proxy look up the hostname, so DNS requests do not leak from your own machine and the target is resolved near the exit.
curl -x "socks5h://USERNAME-country-gb:PASSWORD@gw.fullstackproxy.com:47631" https://ipinfo.io/json05Set it once for every command
curl, wget, pip, git and most command-line tools read the proxy from environment variables. Set them in your shell and leave the flags out:
export HTTPS_PROXY="http://USERNAME:PASSWORD@gw.fullstackproxy.com:47631"
export HTTP_PROXY="$HTTPS_PROXY"
curl https://api.ipify.org06When it does not work
Add -v and read the line that comes back from the proxy. The gateway says what it did not like in plain words.
curl -v -x gw.fullstackproxy.com:47631 -U "USERNAME-contry-us:PASSWORD" https://api.ipify.org
# < HTTP/1.1 400 Unknown flag "contry". Use country, state, city, asn, os, session, lifetime or type.A 407 means the login or password is wrong, 402 means the GB balance for that network is used up. Every code is explained on the proxy error codes page.