Skip to content

Importing a HAR file

A HAR (HTTP Archive) is what your browser’s Network tab produces with “Save all as HAR”. It is the most direct way of turning “what the site does” into a Restorm project.

In the browser: developer tools ▸ Network tab ▸ right-click ▸ Save all as HAR. Then, in Restorm: File ▸ Import (Ctrl+I).

The tree produced by importing a HAR: an "Imported from HAR" environment folder, one sub-folder per recorded page, and one request per entry named VERB /path

HAR elementWhat Restorm makes of it
log.pagesOne folder per page (flattened if there is only one page)
log.entriesOne HTTP request per recorded call
Method, URL, query parametersFilled in
HeadersCarried over, except HTTP/2 pseudo-headers and a content-length that has become wrong
CookiesMerged into a single Cookie header
BodiesJSON, plain text, x-www-form-urlencoded, multipart/form-data

HAR is the only import format that also feeds the history: the responses actually recorded during the capture are written into each created request’s response history.

You therefore have, right from the import, the reference response for every call — before you have sent anything at all.