Manual:Urlencoding

(Redirected from Manual:Urlencode)

Urlencoding is required in a number of situations. For example, API tokens need to be urlencoded or they will be rejected as invalid.

Settings headersEdit

Typical code for setting headers, e.g. for API:Edit, would be:

curl_setopt( $this->curl, CURLOPT_HTTPHEADER, array( 'Content-Type: application/x-www-form-urlencoded' ) );

See alsoEdit