[Mod-security-developers] Question regarding intervention() call
Brought to you by:
victorhora,
zimmerletw
|
From: Jai H. <jai...@mu...> - 2018-01-29 16:46:08
|
I am invoking intervention() as follows:
Transaction aTransaction;
ModSecurityIntervention aModSecIntervention;
aTransaction = msc_new_transaction(modsec, rules, NULL);
msc_process_uri(transaction,
"http://www.modsecurity.org/test?key1=value1&key2=value2&key3=value3
",
"WRONG METHOD", "1.1");
msc_process_request_headers(transaction);
ret = msc_intervention(transaction, &aModSecIntervention);
As expected, I see some console messages indicating that a rule has fired
due to method set to "WRONG METHOD". But, msc_intervention() is returning
0, and aModSecIntervention's attributes are:
status = 0, pause = 0, disruptive = false
I am looking for some values either returned from msc_intervention() or set
within aModSecIntervention which would let the caller know a rule is
triggered. How will a caller know when a rule has been triggered?
Thanks,
Jai
|