AutoSendXmlContentType (HttpRequest property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
m (match syntax table to syntax template; edits, tags and links)
Line 1: Line 1:
{{Template:HttpRequest:AutoSendXmlContentType subtitle}}
{{Template:HttpRequest:AutoSendXmlContentType subtitle}}
The <var>AutoSendXmlContentType</var> property sets or returns a <var>[[Boolean_enumeration|Boolean enumeration]]</var> (<var>True</var> or <var>False</var>) that indicates whether <var>[[AddXml (HttpRequest subroutine)|AddXml]]</var> automatic content-type header generation is on or off.


This property sets and returns a <var>Boolean</var> enumeration
(<var>True</var> or <var>False</var>)
that indicates whether <var>[[AddXml (HttpRequest subroutine)|AddXml]]</var> automatic
content-type header generation is on or off.
==Syntax==
==Syntax==
{{Template:HttpRequest:AutoSendXmlContentType syntax}}
{{Template:HttpRequest:AutoSendXmlContentType syntax}}
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%curr</th>
<tr><th>currentBoolean</th>
<td>The value (True or False) of <var class="term">%httpreq</var>'s <var>AutoSendXmlContentType</var> property.
<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>%httpreq</th>
<tr><th>httpRequest</th>
<td>A previously defined and instantiated <var>HttpRequest</var> object.
<td>A previously defined and instantiated <var>HttpRequest</var> object.
</td></tr>
</td></tr>
<tr><th>newvalue</th>
<tr><th>newBoolean</th>
<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>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
<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>.
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>For information about Enumerations, see [[Enumerations|"Enumerations"]].
</ul>
</ul>
==See also==
==See also==
<ul><li>For more general information and background about using Enumerations, see [[Enumerations|"Enumerations"]].
</ul>
{{Template:HttpRequest:AutoSendXmlContentType footer}}
{{Template:HttpRequest:AutoSendXmlContentType footer}}

Revision as of 07:49, 18 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, 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".