Hi all, in the example below both $ URLretrevd and $retrievedHH have the $path ... Why? Any workaround? Thanks! $rule_state = rule.getstate ( ) ; if ( $rule_state == "REQUEST" ) { $Req_client_ip = request.getRemoteIP ( ) ; $ReqOrihh = http.getHostHeader ( ) ; $path = http.getPath ( ) ; $Reqheaders = http.getHeaders ( ) ; foreach ( $header in hash.keys ( $Reqheaders ) ) { if ( $header == "X-Forwarded-For" ) { $ReqXForwardedFor = ( $Reqheaders [ $header ] ) ; data.set ( $XForwardedFor , $ReqXForwardedFor ) ; data.set ( $ReqHH , $ReqOrihh ) ; data.set ( $URLREQ , $path ) ; } } } if ( $rule_state == "RESPONSE" ) { if ( http.getResponseCode ( ) == 301 ) { $location = http.getResponseHeader ( "Location" ) ; $headers = http.getResponseHeader ( "OriginalHost" ) ; $Resheaders = http.getHeaders ( ) ; $retrievedIP = data.get ( $XForwardedFor ) ; $URLretrevd = data.get ( $URLREQ ) ; $retrievedHH = data.get ( $Reqhh ) ; foreach ( $header in hash.keys ( $Resheaders ) ) { if ( $header == "X-Forwarded-For" ) { $ResXForwardedFor = ( $Resheaders [ $header ] ) ; if ( $ResXForwardedFor = $retrievedIP ) { log.info ( "JP - " . " req HH URL : " . $retrievedHH . $ URLretrevd ) ; } } } }
... View more