AutoSendXmlContentType (HttpRequest property): Difference between revisions
Jump to navigation
Jump to search
m (→Syntax terms) |
m (→Syntax terms) |
||
Line 9: | Line 9: | ||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>%curr | <tr><th>%curr</th> | ||
</th><td>The value (True or False) of | <td>The value (True or False) of <var class="term">%httpreq</var>'s <var>AutoSendXMLContentType</var> property. | ||
</td></tr> | </td></tr> | ||
<tr><th>%httpreq | <tr><th>%httpreq</th> | ||
</th><td>A previously defined and instantiated HTTPRequest object. | <td>A previously defined and instantiated HTTPRequest object. | ||
</td></tr> | </td></tr> | ||
<tr><th>newvalue | <tr><th>newvalue</th> | ||
</th><td>The Boolean enumeration value (<var>True</var> or <var>False</var>) to assign to <var class="term>%httpreq</var> | <td>The Boolean enumeration value (<var>True</var> or <var>False</var>) to assign to <var class="term">%httpreq</var>'s <var>AutoSendXMLContentType</var> property. | ||
</td></tr></table> | </td></tr></table> | ||
Revision as of 21:52, 15 June 2011
Template:HTTPRequest:AutoSendXMLContentType subtitle
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 %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".