|
Introduction
In some cases it is necessary to modify the HTTP header information, e.g. for
monitoring or for special effects.
This is done by editing the data required as an extra argument on a GotoLink
command.
Header information is contained in a single string.
Sets the current value of the header with name to value
to the specified string for the current playback up to the next InitLink or GotoLink
command, after which the values are reset to "normal/default."
The values possible in the headers string are described at Quick Reference to HTTP Headers. Whether a specific header name is accepted with effect by a specific server can only be determined by experimentation.
Suggested Usages
Here is a typical instance of use of this command to apply modified headers:
GotoLink 0 "www.cnn.com" "" "USER: name \n PASSWORD: pass \n SessionID: 654321"
However, to make the job easier if there are multiple commands to be modified and the string is long it may be useful to use a command of the form:
GotoLink wid "URL" "" "$HEADERS"
in conjunction with an Environment Variables file.
Modifying The User Agent String
One example of the use of this feature is to
set the User-Agent name to spoof eValid being
a different kind of browser and thus to force the server
to deliver pages as if eValid were that type of browser.
Note: There is also an available SetUserAgent editable command that has some of the same effects.
The table below specifies some command values for this.
OS | Browser | User-Agent String Definition |
Windows 98 | IE 5.0 | Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; I) |
Windows 98 | IE 5.5 | Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; I) |
Windows 98 | Netscape 4.5 | Mozilla/4.5 [en]C-CCK-MCD {CADGraphicArts} (Win98; I) |
Windows 98 | AOL 6.0 | Mozilla/4.0 (compatible; MSIE 5.01; MSN 2.5; Windows 98) |
Windows 98 | Netscape 6.0 | Mozilla/5.0 (Windows; U; Win98; en-US; m18) Gecko/20001108 Netscape6/6.0 |
Windows NT | IE 5.0 | Mozilla/4.0 (compatible; MSIE 5.0; Windows NT;) |
Windows NT | IE 5.5 | Mozilla/4.0 (compatible; MSIE 5.5; Windows NT;) |
Solaris 2.5.1 | IE 5.0 | Mozilla/4.0 (compatible; MSIE 5.0; SunOS 5.5.1 sun4m; X11) |
Solaris 2.6 | IE 5.0 | Mozilla/4.0 (compatible; MSIE 5.0; SunOS 5.6 sun4u; X11) |