AutoSendXmlContentType (HttpRequest property): Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 10: | Line 10: | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>%curr</th> | <tr><th>%curr</th> | ||
<td>The value (True or False) of <var class="term">%httpreq</var>'s <var> | <td>The value (True or False) of <var class="term">%httpreq</var>'s <var>AutoSendXmlContentType</var> property. | ||
</td></tr> | </td></tr> | ||
<tr><th>%httpreq</th> | <tr><th>%httpreq</th> | ||
Line 16: | Line 16: | ||
</td></tr> | </td></tr> | ||
<tr><th>newvalue</th> | <tr><th>newvalue</th> | ||
<td>The Boolean enumeration value (<var>True</var> or <var>False</var>) to assign to <var class="term">%httpreq</var>'s <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> | ||
Line 24: | Line 24: | ||
content-type HTTP request header via the <var>[[AddHeader (HttpRequest subroutine)|AddHeader]]</var> method. | content-type HTTP request header via the <var>[[AddHeader (HttpRequest subroutine)|AddHeader]]</var> method. | ||
To suppress this automatic generation, you set | To suppress this automatic generation, you set | ||
<var> | <var>AutoSendXmlContentType</var> to <var>False</var>. | ||
<li>For information about Enumerations, see [[Enumerations|"Enumerations"]]. | <li>For information about Enumerations, see [[Enumerations|"Enumerations"]]. | ||
</ul> | </ul> | ||
==See also== | ==See also== | ||
{{Template:HttpRequest:AutoSendXmlContentType footer}} | {{Template:HttpRequest:AutoSendXmlContentType footer}} |
Revision as of 20:29, 16 June 2011
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".