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.
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.
Copyright © 2021 Jogjafile Inc.
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.