2.8 KiB
title | description | lead | date | draft | images | menu | weight | toc | aliases | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
HTTP Archive Files | This guide describes and helps users create HTTP Archive (HAR) files | This guide describes and helps users create HTTP Archive (HAR) files. | 2022-08-26T13:50:51+10:00 | false |
|
220 | true |
|
Introduction
The HTTP Archive File Format (HAR) is a common developer import/export format which shows web requests that browsers make including all headers which includes cookies, forms submitted, etc.
This format allows users to open the developer tools, perform several actions, and then export a file with all of the requests that still exist in the network tab of the developer tools. This file is stored in JSON which makes it easy to view what information exists before sharing it. Subsequently users may import this file on another browser and see all of these requests which makes it easier to debug certain situations without having to replicate an environment or be present in an environment.
Sanitization
The following section outlines some helpful information if you wish to sanitize your HAR file to share it with others.
For generic sanitization information see the Troubleshooting Sanitization guide.
Security Sensitive Information
Important: this file may contain sensitive information which should be sanitized manually before sharing it anywhere with anyone. Sensitive information can vary wildly but some of the key areas that may be sensitive when exporting this for troubleshooting with Authelia are:
Cookie
request headerSet-Cookie
response header- Data sent to the following endpoints:
/api/firstfactor
: username / password/api/*/identity/start
: the token query parameter/api/secondfactor/*
: the post data
Instructions
The following are instructions on how to perform valuable HAR exports. The instructions for Chrome / Chromium should be applicable in all Chromium based browsers, and likewise for Firefox based browsers.
- Open your browser.
- Open a blank tab.
- Press Ctrl + Shift + I to open the browser Developer Tools.
- Open the
Network
tab. - Ensure the browser persists logs:
- Firefox:
- Select the
Network Settings
cog symbol at the top right of theNetwork
tab. - Ensure
Persist Logs
is checked.
- Select the
- Chrome / Chromium:
- Ensure
Preserve logs
in the top left of theNetwork
tab is checked.
- Ensure
- Firefox:
- Perform your intended requests, or the requests that have been requested.
- Export the HAR File:
- Firefox:
- Select the
Network Settings
cog symbol at the top right of theNetwork
tab. - Select
Save All AS HAR
.
- Select the
- Chrome / Chromium:
- Right click any request in the
Network
tab. - Select
Save all as HAR with content
at the bottom of the dialogue.
- Right click any request in the
- Firefox: