
Introduction
Editing HTTP Requests is done from the Recording Tab shown below:

To edit a Web Page, double click on a row in the URL table, or select one of the
URLs in the web page, and then execute Record->Edit URL. This will bring up the HTTP editor dialog:

The HTTP Command Edit Dialog is an editor for HTTP Requests as defined by the
HTTP 1.1 specification
. A complete list of valid header values is given in
Chapter 14 of RFC 2616. Any of the header fields
can either be edited in place, so that the value is permanently changed, or replaced at runtime, so that each virtual
user has a unique value. To edit the values in place, click on the header field on the left, and an editor will
appear on the right. When you are through editing, clicking on the Cancel button will throw away all of the changes
you made; clicking OK will change the data in memory. The changes will not be saved to file until you execute File->Save.
Example: Editing the
Host Field
A common field to edit is the host
field. This field determines which web server the HTTP Request
will be sent to. In Web Performance TrainerTM, every single Web
Page or part of a web page can be targeted at a different web
server or port.
Note that the syntax for specifying the port is the same as in the URL specification.
For example, to target a web server at port 81 of the web site www.yahoo.com, the "value" section of
the editor would read "www.yahoo.com:81".
The "replace at runtime" option allows the value of this header field
to be replaced at runtime, with a unique value for each virtual user. It doesn't make much sense in the context
of setting a host name, but is very flexible for use with little known or future header values. For more information
please see the section on replacing runtime data
.
Editing The Verb Field
The first header field is the "verb" of the request, which tells
the web server the type of request. The basic "verb" to get a web page is called a "GET" after
the text that appears in the protocol. The specification for this section can be found in
Chapter 9 of RFC 2616. Below is an image of the
the dialog editing a request to view http://www.yahoo.com:

At its most basic, you can edit the Verb, HTTP Protocol Versions, and Path. The
most commonly edited field is the Path, which is the part of the URL after the hostname. For example, in the URL
http://www.yahoo.com/bob, the Path would be "/bob".
The other capability of the verb editor is
URL Rewriting.
|