AutoSendXmlContentType (HttpRequest property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
Line 3: Line 3:
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>)
that indicates whether <var>[[AddXML (HTTPRequest subroutine)|AddXML]]</var> automatic
that indicates whether <var>[[AddXML (HttpRequest subroutine)|AddXML]]</var> automatic
content-type header generation is on or off.
content-type header generation is on or off.
==Syntax==
==Syntax==
Line 13: Line 13:
</td></tr>
</td></tr>
<tr><th>%httpreq</th>
<tr><th>%httpreq</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>newvalue</th>
Line 21: Line 21:
==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.
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>AutoSendXMLContentType</var> to <var>False</var>.
<var>AutoSendXMLContentType</var> to <var>False</var>.

Revision as of 20:17, 16 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".

See also

Template:HttpRequest:AutoSendXMLContentType footer