'request hooks' for Owasp ZAP

240 Views Asked by At

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.

1

There are 1 best solutions below

0
Simon Bennetts On BEST ANSWER

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.