alvaro_martinez
Sep 21, 2006Nimbostratus
HTTP Redirect header localtion + uri
Hi,
I have the next reply from web server
HTTP/1.1 302 Moved Temporarily
Set-Cookie: BIGipServerACC-80=674006794.20480.0000; expires=Thu, 21-Sep-2006 11:05:27 GMT; path=/
Date: Thu, 21 Sep 2006 08:20:32 GMT
Location: http://1.2.3.4:8060/mf/MFAgent66x0.SIS?r=yes
Content-Type: text/html
Transfer-Encoding: chunked
I want to change only the IP address of Location header but I want to add the same uri to Location header.
I can to build this rule that I have found in forums but I don´t know if the syntax are correct
when HTTP_REQUEST {
set my_loc "http://xxx.xxx.xxx.xxx[HTTP::uri]"
TCP::respond "HTTP/1.1 302 Found\r\nLocation: $my_loc\r\nConnection: close\r\nContent-Length: 0\r\n\r\n"
TCP::close
}
Can you help me with any solutions or rule?
Regards