Example: web.url
Example 1 – Send an HTTP GET request to ABC's home page
web.url("www.abc.com",
"URL=http://www.abc.com/",
new String[]{
"TargetFrame=",
"TargetBrowser=ABC Technologies",
"Resource=0",
"RecContentType=text/html",
"Snapshot=t1.inf",
"Mode=HTML",
"LAST"
}); Example 2 – Send a HTTP request with a referrer page
web.url ("Hit the Slopes and Save",
"URL=http://www.saleserver.com/American?BV_EngineID=..fm_ski_sale_fall00guest.html",
new String[]{
"TargetFrame=Main",
"Resource=0",
"RecContentType=text/html",
"Referer=http://www.saleserver.com/American?BV_Operation=Dyn_Frame&..main–guest.tmpl",
"Snapshot=t3.inf",
"Mode=HTML",
"LAST"}); Example 3– Download a game
web.url("Games",
"URL=ftp://joe:secret@mygames.com/games/archive/loderunner.exe",
new String[]{
"FtpAscii=1",
"LAST"
}); Example 4– Login to Secure Site
web.url("Login",
"URL=https://secure.computing.com/scripts/login.asp?user=(username)&session={ssid}",
new String[]{
"RecContentType=text/html", //Expected content–type
"LAST"
});