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

ParameterTypeDescriptionRequired
contentTypestringThe Content-Type header for requests.Yes

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