Sticky sessionGet sticky session
Session ID and lifetime
Control how long a sticky session stays active. Username flags on proxy.geonode.io (use a sticky port).
Auth
Use your Geonode proxy username and password with the proxy URL.
Username syntax
<geonode_username>-country-<COUNTRY>-session-<session_id>-lifetime-<minutes>:<geonode_password>Lifetime (minutes)
| Constraint | Value |
|---|---|
| Minimum | 3 |
| Maximum | 1440 (24 hours) |
| Default | 10 |
Session ID
^[A-Za-z0-9_]{1,25}$ — letters, digits, underscore only.
Parameters
| Name | In | Required | Description |
|---|---|---|---|
session | username flag | yes | Custom session ID |
lifetime | username flag | no | Minutes (3–1440) |
port | proxy URL | yes | Sticky port (for example 10000) |
Example
curl -x "http://proxy.geonode.io:10000" \
--proxy-user "<geonode_username>-country-US-session-docsesslife01-lifetime-5:<geonode_password>" \
"http://ip-api.com/json"Response
Example (-session-docsesslife01-lifetime-5 on port 10000):
{
"status": "success",
"country": "United States",
"countryCode": "US",
"region": "MI",
"regionName": "Michigan",
"city": "Chesaning",
"zip": "48616",
"lat": 43.1847,
"lon": -84.115,
"timezone": "America/Detroit",
"isp": "Hughes Network Systems, LLC",
"org": "Hughes Network Systems, LLC",
"as": "AS6621 Hughes Network Systems, LLC",
"query": "184.52.10.140"
}Lifetime itself is not returned in the ip-api body; the flag is accepted when the request succeeds.
Related
Was this page helpful?