The Add Line script command concatenate text to a variable, automatically terminating the text with a carriage return and line feed.
Syntax: | Add Line | variable | += | expression | Comment |
Add Line commands can be selected from the right click menu on a Fetch command. Variable choices are provided for Add Line HTTPHeader and HTTPBody. | |||||
![]() |
HTTPHeader | = | "Server: Apache" | ||
Example: | ![]() |
HTTPHeader | += | "Accept-Ranges: bytes" | Associated command to concatenate expression text to body along with line terminating CR,LF |
Example: | ![]() |
HTTPHeader | += | "Content-Type: text/html" | Associated command to concatenate expression text to body along with line terminating CR,LF |
![]() |
fetch | ||||
Add Line command can also be selected from the right click menu on a Email command. Variable choice is provided for Add Line EmailContents. | |||||
![]() |
EmailContents | = | "This sets the first line" | ||
Example: | ![]() |
EmailContents | += | "this is added as the second line" | Associated command to concatenate expression text to body along with line terminating CR,LF |
![]() |