Reputation: 143
Is there a way I can trigger some action once a particular request is issued in ZAP? For example, I want to send a POST request to an endpoint whenever there is a login/logout request.
Environment: I'm using a ZAP docker image.
Upvotes: 0
Views: 273
Reputation: 6236
Your best option is to use an HTTP Sender script - that will get invoked on every request and response sent or proxied through ZAP. You can test for your login/logout request and then send you POST request. To add scripts to ZAP from the command line see this FAQ.
Upvotes: 2