cURL Request Parameters

Below is a list of parameters followed by examples of request types:

Parameter

Description

USERNAME

Username of proxy user.

dc

Indicates query for datacenter proxy.

country

Country code in two-letter format, not case sensitive. For example, nl indicates a proxy in the Netherlands; za for South Africa; it for Italy.

SID

Session ID keeps the same IP for next queries. Otherwise, a new IP is assigned for each new request. The same IP address is used until the end user device disconnects. Note that session time is determined by IP availability at the time of the request – if an IP from the pool is in use by another customer, it will not be available. SID supports any random string from 1 digit to 99999999. The lowest SID can be sid-1, and the highest SID can be sid-99999999.

PASSWORD

Proxy user password.

site URL

User’s destination site.

A basic query inserting only USERNAME and PASSWORD will be performed from a random IP address:

curl-x USERNAME-dc-any:PASSWORD@gw.ntnt.io:5959 “example.site.com”

You can request a specific country, as in the examples below:

curl-x USERNAME-dc-nl:PASSWORD@gw.ntnt.io:5959 “example.site.com”

Add the SID (session ID) parameter to use the same IP for next queries. Note that SID must be preceded by a country:

curl-x USERNAME-dc-any-sid-45456:PASSWORD@gw.ntnt.io:5959” “example.site.com”

Last updated

Copyright NetNut LTD