AddLongstring (HttpRequest subroutine): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
Line 1: Line 1:
<span class="pageSubtitle"><section begin=dpl_desc/>Add LongString to HTTP Post data<section end=dpl_desc/></span>
{{Template:HTTPRequest:AddLongString subtitle}}
[[Category:HTTPRequest methods|AddLongString subroutine]]


This subroutine adds the contents of a <var>[[Longstrings|Longstring]]</var>
This subroutine adds the contents of a <var>[[Longstrings|Longstring]]</var>
Line 14: Line 13:
EBCDIC to ASCII; however, this can be turned off.
EBCDIC to ASCII; however, this can be turned off.
==Syntax==
==Syntax==
<p class="syntax">%httpreq:AddLongString(%ls, [binflag])
{{Template:HTTPRequest:AddLongString syntax}}
</p>
 
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
Line 34: Line 31:
for example, <var>AddLongString</var> has no effect on the request content type.
for example, <var>AddLongString</var> has no effect on the request content type.
</ul>
</ul>
==See also==
{{Template:HTTPRequest:AddLongString footer}}

Revision as of 18:21, 15 June 2011

Template:HTTPRequest:AddLongString subtitle

This 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

Template:HTTPRequest:AddLongString syntax

Syntax terms

%httpreq A previously defined and instantiated HTTPRequest object.
%ls A longstring variable.
binflag 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 for example, AddLongString has no effect on the request content type.

See also

Template:HTTPRequest:AddLongString footer