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. In the dialog box, you can make the following changes, as described in the following sections:
  3. Click Send HTTP Request.

To edit query parameters:

  1. Click the Query tab.
  2. To add a parameter to the 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 ellipsis (...) 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:

Note that the server ignores the values that were saved when the record was recorded, and the server uses the cookie that the browser generates. If the record header does not include a session cookie, the browser does not send a cookie.

The following steps show how to edit cookies in the Cookies tab. You can also edit cookies in the Header tab. Note that you can edit session cookies, but the changes do not take effect on most servers. The reason is because the session's cookie ID is read before the request enters the servlet container. 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 a name and value, and click OK.
  3. To edit a cookie, click the ellipsis (...) 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.
See Also
Viewing HTTP Monitor Data Records
Using the HTTP Monitor Toolbar
Saving HTTP Monitor Data Records
Deleting HTTP Monitor Data Records

Legal Notices