Your e-Business Quality Partner eValid™ -- Automated Web Quality Solution
Browser-Based, Client-Side, Functional Testing & Validation,
Load & Performance Tuning, Page Timing, Website Analysis,
and Rich Internet Application Monitoring.

eValid -- Header Processing in Playback
eValid Home

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.

GotoLink Command Description

STAN GotoLink wid "URL" "frame_path" ["header_string"]

GotoLinkSubmit wid "URL" "frame_path" ["header_string"]

Goes to the specified URL with the browser, waits for the page to come up (if it can within the required minimum time), and gives control back to the user.

If the WebSite has frames active then the recording includes the frame_path of the frame; on playback this is the frame to which the browser is pointed with the URL.

This action is the same as typing in a URL and pressing RETURN.

The header_string, if used, must separate multiple HTTP header strings with newline characters, e.g.
  User-id: identifier \n User-Password: something

A Warning is issued if URL is not found or if retrieval time exceeds the preset maximum.

The optional header string data is only passed if frame_path is empty.

The content of the optional header string is not checked; it is passed through without modification.

Suggested Usages
Here is a typical instance of use of this command to apply modified headers:

       GotoLink 0 "" "" "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)