> For the complete documentation index, see [llms.txt](https://docs.talordata.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.talordata.com/proxy/mobile-proxies/advanced-features/protocols.md).

# Protocols

The right protocol depends on your use case. The cURL examples below help you verify that your proxy is working correctly before integrating it into your application.

{% hint style="warning" icon="lightbulb-exclamation-on" %}
The placeholders  <mark style="color:blue;">`username:password@host:port`</mark> in all examples must be replaced with your actual proxy credentials. Testing with the placeholders will fail.
{% endhint %}

***

### HTTP

Suitable for most everyday use cases where encryption between client and proxy is not required.

```http
curl -x http://username:password@host:port https://ipinfo.io
```

### HTTPS

Use when you need encryption between your client and the proxy server.

```http
curl -x https://username:password@host:port https://ipinfo.io
```

### SOCKS5

A general-purpose proxy protocol for non‑HTTP applications like chat apps or game clients.

```http
curl -x socks5h://username:password@host:port https://ipinfo.io
```

{% hint style="warning" icon="lightbulb-exclamation-on" %}
The <mark style="color:$primary;">**`h`**</mark> in <mark style="color:$primary;">**`socks5h`**</mark> forces hostname resolution on the proxy server side, which enhances privacy.
{% endhint %}

***

### Verifying Proxy

When the above command is executed successfully, `ipinfo.io` returns the IP address of the request source, along with additional information.

**Output Example:**

```http
{
  "ip": "173.44.168.103",
  "city": "Houston",
  "region": "Texas",
  "country": "US",
  "loc": "29.7633,-95.3633",
  "org": "AS174 Cogent Communications, LLC",
  "postal": "77002",
  "timezone": "America/Chicago",
  "readme": "https://ipinfo.io/missingauth"
}
```
