Chrome developer tools - Network - how to filter only POST and PATCH requests?

Google ChromeGoogle Chrome-Devtools

Google Chrome Problem Overview


In the Chrome browser - Chrome developer tools - Network - I can show only POST requests by putting "method:POST" in the Filter search box. What filter should I use in order to see both PATCH and POST requests?

Google Chrome Solutions


Solution 1 - Google Chrome

The filter option is quite powerful, but it's limited to only using AND (conjunction). So simple workaround would be to use negatives... For instance, in your case you could create a filter like this:

> -method:GET -method:OPTIONS -method:PUT

This should filter out most of the requests. If you have other offending HTTP verbs you can easily add them.

Solution 2 - Google Chrome

Like me, I'm guessing many people came to this thread and don't necessarily need to filter to both POST and PATCH. That said, you can just use the filter like this to filter to POST requests:

On the Network Tab, in the filter box, type in:

method:POST

Solution 3 - Google Chrome

Unfortunately, you can't filter on multiple HTTP methods, or multiple pre-defined filters in general, such as using both method and domain.

You also can't mix a pre-defined filter and a normal text based one, as I discovered when answering How to filter by both text and property in Chrome DevTool's network panel?

You will have to filter one at a time, or alternatively if there's a lot of requests, you could export the HAR and filter based on the JSON output. I gave an example of parsing the JSON here if that helps.

Export HAR

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJaxxView Question on Stackoverflow
Solution 1 - Google ChromeIgorView Answer on Stackoverflow
Solution 2 - Google ChromeJordan RyderView Answer on Stackoverflow
Solution 3 - Google ChromeGideon PyzerView Answer on Stackoverflow