Forum Discussion
3 Replies
Sort By
- Sure can. Variables without a namespace are automatically assigned to the current connection. So, as long as it's during the same connection, you can set variables in one event, and retrieve them from another.
when HTTP_REQUEST { set orig_uri [HTTP::uri] } when HTTP_RESPONSE { log local0. "Original URI: $orig_uri" }
- Mahesh_56902NimbostratusThanks Joe.
- Sure can, but keep in mind that there are no build-in safeguards for overwriting the values across connections. Counters and totals are fine as they aren't connection specific. You could do something like this:
when RULE_INIT { set ::total_requests 0 } when HTTP_REQUEST { incr ::total_requests 1 }