setRequestContentType

The setRequestContentType() method sets the Content-Type header for requests sent with the POST method.

Syntax

setRequestContentType(contentType)
Not available
Not available
Not available
Not available
Not available
Not available

Parameters

contentType (string, required)
The Content-Type header for requests.

Examples

To set the Content-Type header as text/plain:

_paq.push(["setRequestContentType", "text/plain"]);
Not available
Not available
Not available
Not available
Not available
Not available

Related methods