Forum Discussion

Ronak_79648's avatar
Ronak_79648
Icon for Nimbostratus rankNimbostratus
Jan 05, 2009

HTTP Error 408 / 409 -- iRules from 4.x to 9.x

I have simple iRules in 4.x which allows login page for everyone over https. Login process puts the cookie to client and all other request needs to have cookie to access.

 

When I try to take same logic to 9.x the login page gives 408/409 error.

 

 

I am trying to

 

when HTTP_REQUEST {

 

set uri [HTTP::uri]

 

 

if {[HTTP::cookie exists "User-Name"] || $uri contains "index_out.html" || $uri contains "loginForm.jsp" || $uri ends_with "gif" } {

 

pool my_web

 

}

 

elseif {$uri contains "xyz"}{

 

HTTP::redirect "https://[HTTP::host]/index_out.html"

 

}

 

else {

 

HTTP::redirect "https://[HTTP::host]/index_out.html"

 

}

 

 

}

 

 

Any help?

 

 

Thanks

 

ronak

12 Replies