Scripts that invoked with a target URL and are only run when your start them manually.
// Targeted scripts can only be invoked by you, the user, e.g. via a right-click option on the Sites or History tabs
/**
* A function which will be invoked against a specific "targeted" message.
*
* @param msg - the HTTP message being acted upon. This is an HttpMessage object.
*/
function invokeWith(msg) {
// Debugging can be done using println like this
print('invokeWith called for url=' + msg.getRequestHeader().getURI().toString());
}
Name | JavaDoc |
---|---|
msg | HttpMessage |
- Groovy : TargetedDefaultTemplate.groovy
- Jruby : Targeted default template.rb
- Jython : Targeted default template.py
- Zest : Targeted default template.zst
ZAP In Ten: Targeted Scripts (10:01)