AutoSendXmlContentType (HttpRequest property)

From m204wiki
Revision as of 20:28, 16 June 2011 by Dme (talk | contribs)
Jump to navigation Jump to search

Automatic content-type header generation? (HttpRequest class)


This property sets and returns a Boolean enumeration (True or False) that indicates whether AddXml automatic content-type header generation is on or off.

Syntax

%currentBoolean = httpRequest:AutoSendXmlContentType httpRequest:AutoSendXmlContentType = newBoolean

Syntax terms

%curr The value (True or False) of %httpreq's AutoSendXMLContentType property.
%httpreq A previously defined and instantiated HttpRequest object.
newvalue The Boolean enumeration value (True or False) to assign to %httpreq's AutoSendXMLContentType property.

Usage notes

  • The HTTP Helper AddXml method generates a content type header of "text/xml" upon a Post, if you do not explicitly set a content-type HTTP request header via the AddHeader method. To suppress this automatic generation, you set AutoSendXMLContentType to False.
  • For information about Enumerations, see "Enumerations".

See also