About this Add-on

This tool is useful when doing web or REST development, or when you need to make HTTP requests that are not easily done via the browser (PUT/POST/DELETE).

This is based off of the Poster addon, with a focus on preserving the history of transactions, allowing you to go back and review, re-execute, and save/load HTTP requests.

HttpRequester can be opened via the Toolbar button (dual-arrow icon). Note that the Browser response view works well in conjunction with other response display addons like 'XML Pretty Viewer' and 'JSONView'. The HttpRequester browser will utilize the nicely-formatted displays that those addons provide.

See Developer's Comments section below for full usage details.

Developer’s Comments

Overview

View responses in an embedded browser, or in plain text (with an option to pretty-format XML/JSON).

A history of transactions is recorded (and kept across sessions). You can view past requests, and re-execute them. Selecting a transaction in the History list will show the full request/response.

For each transaction in the list, the request and response are shown, as well as the Elapsed Time and Content-Length (The value used is the Content-Length response header if available, and the size of the response body otherwise.)

Each column in the history list is resizable and re-orderable and can be hidden via the column picker. The ordering and width of each column are persisted.

Double-clicking a row in the history will show you a raw text version of the request and response

You can edit raw requests by double-clicking a row in the history list, or clicking the Edit Raw Request button. This is useful for easily viewing the request all at once, or for making quick tweaks to a previous request, such as adding or changing headers. This is the same behavior as double-clicking a transaction in the transaction history list.

Recent URLs, header names, and content types are remembered across sessions, and can easily be selected from drop-down lists.

Usage

HttpRequester can be opened via the Toolbar button (the green/red arrow icon), or opened via the Tools menu. Alternatively the shortcut CTRL-ALT-P will bring up HttpRequester.

You can press the Delete Request button to remove a selected transaction from history list. (You can also hit the Delete key)

You can copy a request/response to clipboard for pasting into bug report, etc. You can also copy existing requests from the clipboard by clicking the Paste Request button, and then executing the request. Select multiple requests at once by holding down CTRL while selecting another request from the list.

Press the <Esc> key to close the HttpRequester window

Save and load stored requests: To save a request, click on a request in the history list and click Save Request. You can optionally give the request a name.

To load a request, click on Load Request - that will bring up a list of all saved requests. You can select any request to load it into your history to view it, or you can click the Execute button to execute it immediately.

Advanced Preferences: (via about:config): Increasing number of items in historyextensions.httprequester.maxhistory - maximum number of requests to keepextensions.httprequester.url.maxhistory - maximum number of URLs to keepextensions.httprequester.contenttype.maxhistory - maximum number of content types to keepextensions.httprequester.header.maxhistory - maximum number of header names to keep

You can add custom methods to the list of available HTTP methods.To add new Methods: enter "about:config" in your URL bar. Then filter on:extensions.httprequester.http.methods.custom.write

Double-click the value to modify it. You can change it to a list of comma-separated values like: ["PROPFIND", "PATCH"]You can also add read-only custom methods too (these methods will not send any entity body) via extensions.httprequester.http.methods.custom.read<br>

If you have any questions/comments/suggestions, shoot me a note.

Version Information

Version 2.1
Released December 3, 2014
37.3 kB
Bekerja pada
Firefox 3.0 and later

Improvements:* Improved parameter handling

The parameters list is now automatically populated when viewing requests in the history.

The parameters and URI are now synchronized. Adding/modifying parameters in the list automatically updates the parameters in the URI, and vice-versa: if you add/modify the parameters directly in the URL they will be reflected in the parameters list.

You can now move parameters up or down in the list, and the URL will automatically reflect the positioning.

* Can now directly edit Header and Parameter names and values in the List. Simply double click to edit the field.

* Multi-select is now supported in the History view for deleting multiple transactions, as well as selecting multiple transactions to copy-to-clipboard.* Multi-select is also supported in the Headers and Parameters list for deleting/reordering multiple selections at one time.

Fixes* Fixed: PATCH method was not working.* Fixed: couldn't execute custom Methods from the Raw Request dialog* Fixed: Response pane would not update if empty contents were returned for an XML/JSON response.