--- title: Asefrak uẓeṭṭa slug: Tools/Network_Monitor translation_of: Tools/Network_Monitor ---
A Network Monitor a k-id beggen meṛṛa isteqsiyen uẓeṭṭa id yesnulfa Firefox (amedya,mara d yezdem asebtar naɣ XMLHttpRequests),tanzagt i yal asteqsi u alulleḍ n yal asteqsi.
Llan akken kra n wamek ara yeldi Network Monitor:
Asefrak uẓeṭṭa ad yuɣal ad iban sdaw n usfaylu n iminig.zdem asebtar akken an wali asuter:
Asefrak yeseklas asuter mara yeldi ufeggag n ifecka,ɣas ma yella iccer uẓeṭṭa ur yettwafren ara.ayagi ibɣa ad yinni belli tzemreḍ a ttebduḍ aseɣti n usebtar deg tadiwent u dɣa zgger ɣer iccer uẓeṭṭa fiḥel azdam n usebtar.
A UI ibḍa ɣef ukuz (4) taggayin timeqṛanin:
Seg Firefox 47,tafeggagt ifecka attan asawen n usfaylu agejday.deg lqem amezwaru,tella swada.
S lexṣas:
By default, the Network Monitor shows a list of all the network requests made in the course of loading the page. Each request is displayed in its own row:
By default, the Network Monitor is cleared each time you navigate to a new page or reload the current page. You can override this behavior by checking "Enable persistent logs" in the Settings.
From Firefox 55 onwards, you can toggle different columns by right-clicking on the table header and choosing the specific column from the context menu. A "Reset Columns" option is also available to reset the columns to their initial configuration. Here is a list of all available columns:
Content-type
of the response.The toolbar at the top labels these columns, and clicking the label sorts all the requests by that column.
If the file is an image, the row includes a thumbnail of the image, and hovering over the filename shows a preview in a tooltip:
The Network Monitor displays an icon in the Domain column:
This gives you extra information about the security status of the request:
Icon | Meaning |
---|---|
HTTPS | |
Weak HTTPS (for example, a weak cipher was used) | |
Failed HTTPS (for example, a certificate was invalid) | |
HTTP | |
Localhost |
For weak and failed HTTPS requests, you'll see more details of the problem in the Security tab.
The Cause column indicates what the cause of the request was. This is usually fairly obvious, and you can generally see the correlation between this and the Type column entry. The most common values are:
When a request was triggered by JavaScript, a small JS icon is shown to the left of the entry in the Cause column. Hovering over this displays a popup containing the stack trace for the request, to provide more clues as to why a request happened.
You can then click on any of the entries in the popup to open up the relevant script in the Debugger pane.
The request list also displays a timeline for the different parts of each request.
Each timeline is given a horizontal position in its row relative to the other network requests, so you can see the total time taken to load the page. For more details on the color-coding used here, see the section on the Timings page.
Starting in Firefox 45, the timeline also contains two vertical lines:
DOMContentLoaded
event is triggeredload
event is triggeredYou can filter requests by content type, by whether they are XMLHttpRequests or WebSocket requests, by URL, or by request properties.
To filter by content type, use the buttons in the toolbar.
To see only {{Glossary("XHR (XMLHttpRequest)", "XHR")}} requests, use the "XHR" button in the toolbar.
New in Firefox 48
To see only WebSocket connections, use the "WS" button in the toolbar.
To monitor the data exchanged in WebSocket connections, try the WebSocket Monitor add-on.
To filter by URL, use the search box in the toolbar. Click in the search box, or press Ctrl + F (or Cmd + F on a Mac), and start typing. The list of network requests will be filtered to include only requests that contain your filter string, in either the Domain or the File portions.
From Firefox 45, you can filter requests that don't contain your filter string by prefixing your query with the "-" operator. For example, the query "-google.com" will show all requests that don't have "google.com" in their URL.
New in Firefox 55
To filter by specific request properties, use the search box in the toolbar. The search box recognizes specific keywords, which can be used to filter the requests by specific request properties. Those keywords are followed by a colon and a related filter value. The filter values are matched case insensitive. Prepending a minus (-
) negates the filter. You can combine different filters together by seperating them with a space.
Keyword | Meaning | Examples |
---|---|---|
status-code |
Shows resources that have the specific HTTP status code. | status-code:304 |
method |
Shows resources that have were requested via the specific HTTP request method. | method:post |
domain |
Shows resources coming from a specifc domain. | domain:mozilla.org |
remote-ip |
Shows resources coming from a server with the specified IP. | remote-ip:63.245.215.53 remote-ip:[2400:cb00:2048:1::6810:2802] |
cause |
Shows resources matching a specific cause type. The types can be found in the description of the cause column. | cause:js cause:stylesheet |
transferred |
Shows resources having a specific transferred size or a transferred size close to the one specified. k can be used as suffix for kilobytes and m for megabytes, e.g. the value 1k is equivalent to 1024 . |
transferred:1k |
size |
Shows resources having a specific size (after decompression) or a size close to the one specified. k can be used as suffix for kilobytes and m for megabytes, e.g. the value 1k is equivalent to 1024 . |
size:2m |
larger-than |
Shows resources that are larger than the specified size in bytes. k can be used as suffix for kilobytes and m for megabytes, e.g. the value 1k is equivalent to 1024 . |
larger-than:2000 -larger-than:4k |
mime-type |
Shows resources that match the specified MIME type. | mime-type:text/html mime-type:image/png mime-type:application/javascript |
is |
is:cached and is:from-cache shows only resources coming from cache.is:running shows only resources, which are currently being transferred. |
is:cached -is:running |
scheme |
Shows resources transferred via the given scheme. | scheme:http |
has-response-header |
Shows resources that contain the specified HTTP response header. | has-response-header:cache-control has-response-header:X-Firefox-Spdy |
set-cookie-domain |
Show the resources that have a Set-Cookie header with a Domain attribute that matches the specified value. |
set-cookie-domain:.mozilla.org |
set-cookie-name |
Show the resources that have a Set-Cookie header with a name that matches the specified value. |
set-cookie-name:_ga |
set-cookie-value |
Show the resources that have a Set-Cookie header with a value that matches the specified value. |
set-cookie-value:true |
regexp |
Show the resources having a URL that matches the given {{Glossary("regular expression")}}. | regexp:\d{5} |
Context-clicking on a row in the list displays a context menu with the following options:
This option opens an editor enabling you to edit the request's method, URL, parameters, and headers, and resend the request.
This option copies the network request to the clipboard as a cURL command, so you can execute it from a command line. The command may include the following options:
-X [METHOD] |
If the method is not GET or POST |
--data |
For URL encoded request parameters |
--data-binary |
For multipart request parameters |
--http/VERSION |
If the HTTP version is not 1.1 |
-I |
If the method is HEAD |
-H |
One for each request header. From Firefox 34, if the "Accept-Encoding" header is present, the cURL command will include |
New in Firefox 41.
These options create an HTTP Archive (HAR) for all requests listed. The HAR format enables you to export detailed information about network requests. 'Copy All As HAR' copies the data to the clipboard, 'Save All As HAR' opens a dialog allowing you to save the archive to disk.
Clicking on a row displays a new pane in the right-hand side of the network monitor, which provides more detailed information about the request.
The tabs at the top of this pane enable you to switch between the following pages:
Clicking the icon at the right-hand end of the toolbar closes the details pane and returns you to the list view.
This tab lists basic information about the request:
This includes:
You can filter the headers that are displayed:
New in Firefox 54
Besides each header is a [Learn More] link referring to the documentation of the HTTP headers.
This tab lists full details of any cookies sent with the request or response:
As with headers, you can filter the list of cookies displayed.
This tab displays the GET parameters and POST data of a request:
The complete content of the response. If the response is HTML, JS, or CSS, it will be shown as text:
If the response is JSON, it will be shown as an inspectable object.
If the response is an image, the tab displays a preview:
The Timings tab breaks a network request down into the following subset of the stages defined in the HTTP Archive specification:
Name | Description |
---|---|
Blocked |
Time spent in a queue waiting for a network connection. The browser imposes a limit on the number of simultaneous connections that can be made to a single server. In Firefox this defaults to 6, but can be changed using the |
DNS resolution | Time taken to resolve a host name. |
Connecting | Time taken to create a TCP connection. |
Sending | Time taken to send the HTTP request to the server. |
Waiting | Waiting for a response from the server. |
Receiving | Time taken to read the entire response from the server (or cache). |
It presents a more detailed, annotated, view of the timeline bar for that request showing how the total wait time is split into the various stages:
If the site is being served over HTTPS, you get an extra tab labeled "Security". This contains details about the secure connection used including the protocol, the cipher suite, and certificate details:
The Security tab shows a warning for security weaknesses. Currently it warns you about two weaknesses:
Removed in Firefox 55.
If the file type is HTML another tab appears labeled "Preview". This renders just that HTML:
The Network Monitor includes a performance analysis tool, to help show you how long the browser takes to download the different parts of your site.
To run the performance analysis tool click the stopwatch icon in the toolbar.
(Alternatively, if you have only just opened the Network Monitor, so it's not yet populated with the list of requests, you'll get a stopwatch icon in the main window.)
The Network Monitor then loads the site twice: once with an empty browser cache, and once with a primed browser cache. This simulates the first time a user visits your site, and subsequent visits. It displays the results for each run side by side, or vertically if the browser window is narrow:
The results for each run are summarised in a table and a pie chart. The tables group resources by type, and show the total size of each resource and the total time it took to load them. The accompanying pie chart shows the relative size of each resource type.
To get back to the Network Monitor's list of network requests click the "Back" button on the left.
Clicking on a slice of the pie takes you to the Network Monitor for that run, with a filter automatically applied to see only that resource type.