<< Click to Display Table of Contents >> Navigation: 3. Script Language > Internet and Network > Internet and Network Commands |
MiniRobotLanguage (MRL)
CFU. Command
Copy from Url
Intention
Reads a file from a WEB-URL via http. Can be used to test WEB-Sites and downloads. Can simulate different Browsers.
You may replace special-characters by a hexadecimal code to make them better readable. Spaces would to be %20 for example. Files that are hidden behind Pearl-Scripts can not be downloaded via CFU.
Alternative commands are: DLF or DLV for normal usage.
Syntax
CFU.P1[|P2[|P3][|P4][|P5][|P6]
Parameter Explanation
P1 - URL to read from WEB. Must be a URL ending with a filename.
P2 - (optional) Variable for the downloaded Data. If omitted, stack is used.
P3 - (optional) Timeout in Seconds.
P4 - (optional) Referer-String.
P5 - (optional) Set Browser-Type (numeric 1... 20)
P6 - (optional) Site-URL (Example: "www.fa2.de"). Only for special usage.
' Result auf Stack
CFU.$$URL
' Result in $$RET
CFU.$$URL|$$RET
' Result in $$RET + Timeout von $$TIM
CFU.$$URL|$$RET|$$TIM
' plus Referer String aus$$REF
CFU.$$URL|$$RET|$$TIM|$$REF
' plus Browser-Identification from $$BNR
CFU.$$URL|$$RET|$$TIM|$$REF|$$BNR
' Leave a site-URL
CFU.$$URL|$$RET|$$TIM|$$REF|$$BNR|$$SIR
P5 - Browser-Types ( User Agent Identification :
1. "MiniRobot PR0."
2. "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)"
3. "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; DT)"
4. "" (None - empty)
5. "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; en) Opera 8.0"
6. "msnbot/1.0 (+http://search.msn.com/msnbot.htm)"
7. "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
8. "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; en) Opera 8.01"
9. "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; de) Opera 8.01"
10. "Mozilla/5.0 (Windows; U; Win98; hu-HU; rv:1.7.6) Gecko/20050318 Firefox/1.0.2"
11. "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)"
12. "Mozilla/5.0 (Windows; U; Windows NT 5.0; sl-SI; rv:1.7.8) Gecko/20050511 Firefox/1.0.4"
13. "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
14. "YahooSeeker/1.2 (compatible; Mozilla 4.0; MSIE 5.5; yahooseeker at yahoo-inc dot com ; http://help.yahoo.com/help/us/shop/merchant/)"
15. "Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90)"
16. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR"
17. Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.A.B.C Safari/525.13
18. Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10
19. Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.3) Gecko/20040924 Epiphany/1.4.4 (Ubuntu)
20. Opera/9.80 (Macintosh; Intel Mac OS X; U; en) Presto/2.2.15 Version/10.00
Example
'***********************************
' CFU.-Test
'***********************************
: §§URL=http://www.it-berater.org/TheoDownloads/allinone cthm-map-pack 10.exe
VAR.§§FIL=?desktop\Map_Pack.exe
VAR.§§TIM=#dtime#
CFU.§§URL|§§RET
LEN.§§RET|§§LEN
PRT.§§LEN - Time: #dsince#
CTF.§§FIL|§§RET
DMP.
END.
Remarks
-
Limitations:
-
See also: