Sticky sessionGet sticky session

Bandwidth-limited session

Create a sticky session with a bandwidth limit. 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>-limit-<limit>:<geonode_password>

limit is the session bandwidth cap (as configured for your product). Hitting the cap later returns gateway error 467 (see Error Handling).

Parameters

NameInRequiredDescription
sessionusername flagyesCustom session ID
limitusername flagyesBandwidth limit for the session
portproxy URLyesSticky port (for example 10000)

Example

curl -x "http://proxy.geonode.io:10000" \
  --proxy-user "<geonode_username>-country-US-session-docsesslim01-limit-10:<geonode_password>" \
  "http://ip-api.com/json"

Response

Example (flag accepted; limit exhaustion not exercised in this check):

{
  "status": "success",
  "country": "United States",
  "countryCode": "US",
  "region": "GA",
  "regionName": "Georgia",
  "city": "Alpharetta",
  "zip": "30023",
  "lat": 34.0752,
  "lon": -84.2987,
  "timezone": "America/New_York",
  "isp": "AT&T Enterprises, LLC",
  "org": "AT&T Enterprises, LLC",
  "as": "AS20057 AT&T Enterprises, LLC",
  "query": "107.77.90.112"
}

Was this page helpful?

On this page