AddLongstring (HttpRequest subroutine): Difference between revisions
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{Template: | {{Template:HttpRequest:AddLongString subtitle}} | ||
This subroutine adds the contents of a <var>[[Longstrings|Longstring]]</var> | This subroutine adds the contents of a <var>[[Longstrings|Longstring]]</var> | ||
Line 13: | Line 13: | ||
EBCDIC to ASCII; however, this can be turned off. | EBCDIC to ASCII; however, this can be turned off. | ||
==Syntax== | ==Syntax== | ||
{{Template: | {{Template:HttpRequest:AddLongString syntax}} | ||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
Line 32: | Line 32: | ||
</ul> | </ul> | ||
==See also== | ==See also== | ||
{{Template: | {{Template:HttpRequest:AddLongString footer}} |
Revision as of 20:16, 16 June 2011
Add a longstring to POST data for this request (HttpRequest class)
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
httpRequest:AddLongString( string, [xlatFlag])
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.