Skip to content

psContentTypeExpected - cXmlHttpTransfer

Specifies the expected content type of the response

Type: Property
Access: Read/Write
Data Type: String
Parameters: None

Syntax

Property String psContentTypeExpected
Access Type Syntax
Read Access: Get psContentTypeExpected to StringVariable
Write Access: Set psContentTypeExpected to StringVariable/Value

Description

The psContentTypeExpected specifies the expected content type of the received XML response. If the content received (psContentTypeReceived) does not contain the content type expected a transfer error will occur and the peXmlTransferStatus property will be set to xtsInvalidContentType.

The default value of this property is 'text/xml'.

If psContentTypeExpected is set to an empty string, any content type will be accepted. This may be required if the server returning the XML data is not setting the proper content type.

Set psContentTypeExpected to "" // allow any content type

See Also

psContentTypeReceived | peXmlTransferStatus