Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] New Type for the Interception Filters #70

Closed
Sudistark opened this issue Jul 12, 2021 · 2 comments
Closed

[Feature request] New Type for the Interception Filters #70

Sudistark opened this issue Jul 12, 2021 · 2 comments

Comments

@Sudistark
Copy link

Hey @Quitten ,

Is there any way to filter requests based upon a string/regex match in the request body?
For eg:
Suppose this an unwanted request , which I don't want to see:

POST /api/v2/graphql HTTP/2
Host: localhost:1337
Cookie: 
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 
Content-Type: application/json
Content-Length: 4872
Te: trailers
Connection: close

{
  "operationName": "Usernotification",
  "query": "query Usernotification(}"
}

I want to filter all the requests which have the word Usernotification in the request body.

Currently these are the only available options in the filter tab:

Options

If there is no way to do it, can you please add more options in the interception filters tab for this scenarios:

Request Body contains (simple string)
Request Body contains (regex)

Request Body NOT contains (simple string)
Request Body Not contains (regex)

Response Body contains (simple string)
Response Body contains (regex)

Response Body NOT contains (simple string)
Response Body Not contains (regex)

PS: I am great fan of this tool, I almost used it daily :)
Thankyou so much for creating this awesome tool.

@Quitten
Copy link
Owner

Quitten commented Jul 12, 2021

Hey @Sudistark,
Thanks for the feature request, I hope to find some time in the next weekend in order to develop these abilities.
Super happy to help the community :)
Keep enjoying the tool

@Quitten
Copy link
Owner

Quitten commented Aug 9, 2021

@Sudistark - I just pushed 2a9f9df to solve this issue.
Please let me know if you have any further issues.
Issue closed.

@Quitten Quitten closed this as completed Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants