Use ProxyHQ with PHP (Guzzle)
Use ProxyHQ with the Guzzle HTTP client.
Connection details
Use these values. Your login and password are in your dashboard.
| Type | HTTP (or SOCKS5) |
| Host | gw.proxyhq.net |
| Port (HTTP / HTTPS) | 823 |
| Port (SOCKS5) | 824 |
| Sticky ports | 10000 - 20000 |
| Username | YOUR_LOGIN |
| Password | YOUR_PASSWORD |
Steps
- Install Guzzle with composer require guzzlehttp/guzzle.
- Pass the proxy URL, including the login and password, in the proxy option.
<?php
require "vendor/autoload.php";
$client = new GuzzleHttp\Client();
$res = $client->get("https://api.ipify.org", [
"proxy" => "http://YOUR_LOGIN__cr.us:[email protected]:823",
"timeout" => 30,
]);
echo $res->getBody();Choose a country or a sticky IP
Add __cr.de (or another country code) to the end of your login to choose a country. Use a port from 10000 to 20000 for a sticky IP. See country targeting and rotating vs sticky.
Stuck? See troubleshooting or email [email protected].