LineEnd (HttpRequest property): Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
m (1 revision) |
||
Line 3: | Line 3: | ||
Added in version 6.6, this settable property | Added in version 6.6, this settable property | ||
lets you select which of three line-end sequences to use | lets you select which of three line-end sequences to use | ||
when you add a file to form Post data by passing a Stringlist object | when you add a file to form Post data by passing a <var>Stringlist</var> object | ||
to the AddField method. | to the AddField method. | ||
==Syntax== | ==Syntax== | ||
Line 13: | Line 13: | ||
</td></tr> | </td></tr> | ||
<tr><th>sequence</th> | <tr><th>sequence</th> | ||
<td>Identifies the line-end sequence to use for the Stringlist items being copied into the Post data. Each copied Stringlist item has a line-end sequence appended to it. The options you may specify are these LineEnd Enumeration values: <dl> <dt>CRLF <dd>Use carriage-return/line-feed (hex value X'0D0A'). This is the default for a newly created <var>HTTPRequest</var> object. <dt>CR <dd>Use only carriage-return (X'0D'). <dt>LF <dd>Use only line-feed (X'0A'). | <td>Identifies the line-end sequence to use for the <var>Stringlist</var> items being copied into the Post data. Each copied <var>Stringlist</var> item has a line-end sequence appended to it. The options you may specify are these LineEnd Enumeration values: <dl> <dt>CRLF <dd>Use carriage-return/line-feed (hex value X'0D0A'). This is the default for a newly created <var>HTTPRequest</var> object. <dt>CR <dd>Use only carriage-return (X'0D'). <dt>LF <dd>Use only line-feed (X'0A'). | ||
</dl> | </dl> | ||
</td></tr> | </td></tr> |
Revision as of 22:50, 15 June 2011
Template:HTTPRequest:LineEnd subtitle
Added in version 6.6, this settable property lets you select which of three line-end sequences to use when you add a file to form Post data by passing a Stringlist object to the AddField method.
Syntax
Template:HTTPRequest:LineEnd syntax
Syntax terms
%httpreq | An instantiated HTTPRequest object. |
---|---|
sequence | Identifies the line-end sequence to use for the Stringlist items being copied into the Post data. Each copied Stringlist item has a line-end sequence appended to it. The options you may specify are these LineEnd Enumeration values:
|
%curr | The string variable for the assignment of the current value of LineEnd. |
Usage notes
- The LineEnd property must be set before the AddField call that adds the form data.
- The LineEnd setting remains in effect unless the property is reset with another assignment.
- For an example of code that uses the LineEnd property, see this AddField example.
- For information about Enumerations, see "Enumerations".
Example
The LineEnd format is shown in the following fragment:
%HTTPRequest:LineEnd = CRLF %HTTPRequest:LineEnd = CR %HTTPRequest:LineEnd = LF %HTTPRequest:AddField( ....