AddLongstring (HttpRequest subroutine): Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
(9 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{Template: | {{Template:HttpRequest:AddLongstring subtitle}} | ||
The <var>AddLongstring</var> subroutine adds the contents of a <var>[[Longstrings|Longstring]]</var> to the HTTP Post data that is subsequently sent on a [[Post (HttpRequest function)|Post]] method invocation. | |||
The contents of the passed <var>Longstring</var> become the post data of the request being built. Invoking this method erases any post data previously added by <var>[[AddXml (HttpRequest subroutine)|AddXml]]</var> | |||
or <var>AddLongstring</var> method calls. By default, the data is converted from EBCDIC to ASCII; however, this can be turned off. | |||
method | |||
==Syntax== | ==Syntax== | ||
{{Template: | {{Template:HttpRequest:AddLongstring syntax}} | ||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th> | <tr><th>httpRequest</th> | ||
<td>A previously defined and instantiated <var> | <td>A previously defined and instantiated <var>HttpRequest</var> object. | ||
</td></tr> | </td></tr> | ||
<tr><th> | <tr><th>string</th> | ||
<td>A | <td>A <var>[[Longstrings|Longstring]]</var> variable. | ||
</td></tr> | </td></tr> | ||
<tr><th> | <tr><th>xlatFlag</th> | ||
<td>A numeric expression that, if nonzero, indicates binary data. Setting this option overrides the default behaviour of translating EBCDIC to ASCII. | <td>A numeric expression that, if nonzero, indicates binary data. Setting this option overrides the default behaviour of translating EBCDIC to ASCII. | ||
</td></tr></table> | |||
==Usage notes== | ==Usage notes== | ||
<ul> | <ul> | ||
<li>Unlike the <var>[[AddField ( | <li>Unlike the <var>[[AddField (HttpRequest subroutine)|AddField]]</var> method, <var>AddLongstring</var> has no effect on the request content type. | ||
</ul> | </ul> | ||
==See also== | ==See also== | ||
{{Template: | {{Template:HttpRequest:AddLongstring footer}} |
Latest revision as of 16:57, 21 June 2011
Add a longstring to POST data for this request (HttpRequest class)
The AddLongstring subroutine adds the contents of a Longstring to the HTTP Post data that is subsequently sent on a Post method invocation.
The contents of the passed Longstring become the post data of the request being built. Invoking this method erases any post data previously added by AddXml or AddLongstring method calls. By default, the data is converted from EBCDIC to ASCII; however, this can be turned off.
Syntax
httpRequest:AddLongstring( string, [xlatFlag])
Syntax terms
httpRequest | A previously defined and instantiated HttpRequest object. |
---|---|
string | A Longstring variable. |
xlatFlag | A numeric expression that, if nonzero, indicates binary data. Setting this option overrides the default behaviour of translating EBCDIC to ASCII. |
Usage notes
- Unlike the AddField method, AddLongstring has no effect on the request content type.