how to check request body content #649
Answered
by
nicnocquee
techieshark
asked this question in
Q&A
-
Hi, Is it possible to set up a probe which declares that certain content exists on a page, e.g. that the html's Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
nicnocquee
Apr 19, 2022
Replies: 1 comment 1 reply
-
Hello @techieshark You can use Regex for the alert's query. For example, if you want to receive notification when the title is "Error not found", you can use the following alert: - query: response.body ~= "Error not found"
message: Title not what is expected! Likewise, If you want to get notification when the title does not contain "Where the world", you can use the following alert - query: response.body ~= "^(?![^]*Where the world)"
message: Title not what is expected! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
nicnocquee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @techieshark
You can use Regex for the alert's query. For example, if you want to receive notification when the title is "Error not found", you can use the following alert:
Likewise, If you want to get notification when the title does not contain "Where the world", you can use the following alert