Chrome Developer Tools - Network - How to filter only POST and PATCH requests?

In the Chrome browser - Chrome developer tools - network - I can only show POST requests by putting "method: POST" in the filter edit box. Which filter should be used to view PATCH and POST requests?

thanks

+32
google-chrome google-chrome-devtools
source share
3 answers

The filter parameter is quite powerful, but it is limited only by using AND (compound). Such a simple way would be to use negatives ... For example, in your case, you can create a filter as follows:

Method: GET Method: OPTIONS Method: PUT

This should filter out most requests. If you have other infringing HTTP verbs, you can easily add them.

+68
source share

Unfortunately, you cannot filter multiple HTTP methods or multiple predefined filters in general, for example, using both method and domain .

You also cannot mix a predefined filter with a plain text one, as I found in the answer How do I filter both text and property in the Chrome DevTool network panel?

You will need to filter one by one, or if there are many requests, you can export the HAR and filter based on JSON output. I gave an example of parsing JSON here if that helps.

HAR Export

+2
source share

Like me, I assume that many people come to this topic and do not have to filter both POST and PATCH. However, you can simply use this filter to filter POST requests:

On the Network tab, in the filter field, enter:

 method:POST 
0
source share

All Articles