AutoSendXmlContentType (HttpRequest property)

From m204wiki
Revision as of 01:08, 15 June 2011 by JAL (talk | contribs) (→‎Usage notes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

%curr = %httpreq:AutoSendXMLContentType
%httpreq:AutoSendXMLContentType = newvalue

Syntax Terms

%curr The value (True or False) of :hp1.%httpreq:ehp1.'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".