AutoSendXmlContentType (HttpRequest property): Difference between revisions
Jump to navigation
Jump to search
m (consistent true and false) |
mNo edit summary |
||
Line 7: | Line 7: | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>currentBoolean</th> | <tr><th>currentBoolean</th> | ||
<td>The current value (< | <td>The current value (<var>True</var> or <var>False</var>) of <var class="term">httpRequest</var>'s <var>AutoSendXmlContentType</var> property. | ||
</td></tr> | </td></tr> | ||
<tr><th>httpRequest</th> | <tr><th>httpRequest</th> | ||
Line 13: | Line 13: | ||
</td></tr> | </td></tr> | ||
<tr><th>newBoolean</th> | <tr><th>newBoolean</th> | ||
<td>The new <var>Boolean enumeration</var> value (< | <td>The new <var>Boolean enumeration</var> value (<var>True</var> or <var>False</var>) to assign to <var class="term">httpRequest</var>'s <var>AutoSendXmlContentType</var> property. | ||
</td></tr></table> | </td></tr></table> | ||
==Usage notes== | ==Usage notes== | ||
<ul> | <ul> | ||
<li>The <var class="product">HTTP Helper</var> <var>[[AddXml (HttpRequest subroutine)|AddXml]]</var> 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 <var>[[AddHeader (HttpRequest subroutine)|AddHeader]]</var> method. To suppress this automatic generation, you set <var>AutoSendXmlContentType</var> to <var>False</var>. | <li>The <var class="product">HTTP Helper</var> <var>[[AddXml (HttpRequest subroutine)|AddXml]]</var> method generates a content type header of "text/xml" upon a <var>[[Post (HttpRequest function)|Post</var>, if you do not explicitly set a content-type HTTP request header via the <var>[[AddHeader (HttpRequest subroutine)|AddHeader]]</var> method. To suppress this automatic generation, you set <var>AutoSendXmlContentType</var> to <var>False</var>. | ||
</ul> | </ul> | ||
Latest revision as of 19:11, 21 June 2011
Automatic content-type header generation? (HttpRequest class)
The AutoSendXmlContentType property sets or 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
currentBoolean | The current value (True or False) of httpRequest's AutoSendXmlContentType property. |
---|---|
httpRequest | A previously defined and instantiated HttpRequest object. |
newBoolean | The new Boolean enumeration value (True or False) to assign to httpRequest's AutoSendXmlContentType property. |
Usage notes
- The HTTP Helper AddXml method generates a content type header of "text/xml" upon a [[Post (HttpRequest function)|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.
See also
- For more general information and background about using Enumerations, see "Enumerations".