adiezma_1656
Dec 18, 2012Nimbostratus
01220001:3: TCL error
Hi!
I'm having problems with a "access iRULE".
The log show :
" 01220001:3: TCL error: <> - Prerequisite operation not in progress (line 1) invoked from within "HTTP::header Referer" "
The line shows many times and is very annoying.
The code of iRule is:
--------------------------------------------------------------------------------------------------------------------------------------------
when HTTP_REQUEST {
set date [clock format [clock seconds] -format {%d/%b/%Y:%H:%M:%S }]
set refer_host [string tolower [URI::host [HTTP::header Referer]]]
set client_addr [getfield [IP::client_addr] "%" 1]
set username [HTTP::username]
set method [HTTP::method]
set uri [HTTP::uri]
set version [HTTP::version]
set bytes [IP::stats bytes]
set header [HTTP::header User-Agent]
set url [HTTP::host]
}
when HTTP_RESPONSE {
set status [HTTP::status]
log local1. "$client_addr - - \[$date +0200\] \"$refer_host\" $method $uri HTTP/$version $status $bytes "
}
--------------------------------------------------------------------------------------------------------------------------------------------
The irule is properly written, i hope. Any idea...?
Thanks, regards.
A. Diezma