Roshan
Roshan

Reputation: 143

'request hooks' for Owasp ZAP

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

Answers (1)

Simon Bennetts
Simon Bennetts

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

Related Questions