AutoSendXmlContentType (HttpRequest property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
Line 1: Line 1:
[[Category:HTTPRequest methods|AutoSendXMLContentType property]]
This property sets and returns a <var>Boolean</var> enumeration
This property sets and returns a <var>Boolean</var> enumeration
(<var>True</var> or <var>False</var>)
(<var>True</var> or <var>False</var>)
Line 5: Line 4:
content-type header generation is on or off.
content-type header generation is on or off.
==Syntax==
==Syntax==
<p class="code">%curr = %httpreq:AutoSendXMLContentType
{{Template:HTTPRequest:AutoSendXMLContentType syntax}}
<br>
===Syntax terms===
%httpreq:AutoSendXMLContentType = newvalue
</p>
===Syntax Terms===
<table>
<table>
<tr><th>%curr
<tr><th>%curr
Line 28: Line 24:
<li>For information about Enumerations, see [[Enumerations|"Enumerations"]].
<li>For information about Enumerations, see [[Enumerations|"Enumerations"]].
</ul>
</ul>
==See also==
{{Template:HTTPRequest:AutoSendXMLContentType footer}}

Revision as of 18:23, 15 June 2011

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

Template:HTTPRequest:AutoSendXMLContentType syntax

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".

See also

Template:HTTPRequest:AutoSendXMLContentType footer