<< Click to Display Table of Contents >> Navigation: 3. Script Language > Internet and Network > Internet and Network Commands |
MiniRobotLanguage (MRL)
DLV. Command
Download to Variable
Intention
This command can be used to download a File or a WEB-Site from Internet to stack or variable. It an be used for all sorts of links.
Internally its identical to DLF., just that it downloads to a variable and not to a file.
The timeout flag is set according to success of operation.
Syntax
DLV.[P1][|P2[|P3][|P4]
Parameter Explanation
P1 - URL
P2 - (optional) Output Filename - if omitted is taken from TOS
P3 - (optional out) Variable for Success-flag 1/0.*
P4 - (optional in ) Password for Download
Example
''***********************************
' DLV.-DEMO
'***********************************
PRT.-------------------------
' We work from Variable to Stack if one Parameters are specified.
' This is the URL of the file to download
VAR.§§URL=http://www.it-berater.org/download/down.pl?ID=1
DLV.§§URL
DMP.4
STS.CLEA
PRT.-------------------------
' We work from VAR to VAR if two Parameters are specified. Resulting Bytes are left on stack
' This is the URL of the file to download
VAR.§§URL=http://www.it-berater.org/download/down.pl?ID=1
DLV.§§URL|§§FIL
LEN.§§FIL|§§LEN
PRT.Downloaded File is: §§LEN Bytes.
DMP.4
PRT.-------------------------
' We work from VAR to VAR if two Parameters are specified.
' This is the URL of the file to download
VAR.§§URL=http://www.it-berater.org/download/down.pl?ID=1
DLV.§§URL|§§FIL|§§BYT
PRT. Bytes loaded: §§BYT
PRT.-------------------------
DMP.4
DMP.
MBX.Ready
END.
Remarks
-
Limitations:
-
See also: