Editing and Replaying Requests in the HTTP Monitor

See Also

You can replay HTTP requests that are associated with the current records and the saved records in the HTTP Monitor window. When you replay a request, the response appears in the web browser. Note that if the server or the web module is not running, an error message is displayed. If this happens, re-execute the module on the target server.

Tip Note that the cache configuration in certain browsers can cause problems with replaying requests. If you encounter such problems, bypass the cache by clicking Reload on your browser after the monitor issues the request.
If a servlet or JSP page reads data directly from the ServletInputStream as opposed to using methods from the getParameter family, requests to that resource will not replay correctly.

To replay an HTTP request on the server:

  1. In the HTTP Monitor Records pane, right-click the monitor record that you want to replay.
  2. Choose Replay from the contextual menu. The page resulting from the request appears in the web browser.

To edit and replay an HTTP request:

  1. In the HTTP Monitor Records pane, right-click the record that you want to edit.
  2. Choose Edit and Replay from the contextual menu. The Edit and Replay dialog box appears. It enables you to modify query parameters, request information, or headers before sending the request. You can also send the request to a different server.
  3. Edit information about the request. The following sections describe the information that you can edit in the HTTP Monitor's Edit and Replay dialog box.
  4. Click Send HTTP Request.

To edit query parameters:

  1. Click the Query tab.
  2. To add a query, click Add Parameter. The Add Parameter dialog box appears. Type in a name and value, and click OK. The query parameters appear in the Query tab.
  3. To edit a query parameter, click the elipsis button next to the parameter.
  4. To delete a query parameter, select the parameter and click Delete Parameters. Use the Shift or Control key to select multiple parameters for deletion.

To edit request data:

  1. Click the Request tab.
  2. To edit the Request URI parameter or the Protocol parameter, click the ellipsis button next to the parameter.
  3. To change the request method, select the desired method from the combo box in the Method parameter. For instance, change GET to POST.

To edit cookies:

Session cookies are handled according to the settings specified on the HTTP Monitor toolbar.

The following steps show how to edit cookies in the Cookies tab. You can also edit cookies in the Header tab. Not all servers support the editing of cookies.

  1. Click the Cookies tab.
  2. To add a cookie, click Add Cookie. The Add Cookie dialog box appears. Type in a name and value, and click OK.
  3. To edit a cookie, click the ellipses button next to the cookie.
  4. To delete a cookie, select the cookie and click Delete Cookies. Use the Shift or Control key to select multiple cookies for deletion.

To edit request headers:

  1. Click the Headers tab.
  2. To add a header, click Add Header. The Add Header dialog box appears. Type in a name and value and click OK.
  3. To edit a header parameter such as Accept, Connection, Host, or User-Agent, click the ellipsis button next to the parameter.
  4. To delete a header, select it and click Delete Headers. Use the Shift or Control key to select multiple headers for deletion.

To send a request to a different server:

  1. To edit server information, such as the hostname of servlet engine or the port number of an HTTP service, click the Server tab.
  2. To change a parameter's value, click the ellipsis button next to the parameter. Note that the server must be configured to work with the HTTP Monitor. Otherwise, the server will not replay the request properly. For more information, see Deploying the HTTP Monitor for a Web Application.
See Also
Viewing HTTP Monitor Data Records
Using the HTTP Monitor Toolbar
Saving HTTP Monitor Data Records
Deleting HTTP Monitor Data Records

Legal Notices