Sign up Login

URL Encoding a GET Request

The JSON and XML API is normally invoked as an HTTP GET request, with parameters included in the query string.

When making a GET request, remember to URL encode the value part of each parameter=value pair.

Here are some common code examples:-

Language Example
"Classic" ASP "&name=" & Server.urlencode(input_name)
PHP "&name=" . urlencode($input_name)
JavaScript "&name=" + encodeURI(input_name)