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

  • I added the parenthesis. the pool name is that way so no error on compile time.

     

    Do you think AJAX or response re-direct has anything to do with this. I am thinking the way login process works has anything to do with 409?

     

    It works fine with 4.x in prod.

     

    if i use loginForm.jsp i get different error not 409. One thing i noticed is with loginForm.jsp login process does happen i can see cookie at client side

     

    and entry in app server log.

     

    Let me know if you or someone else can think of anything else.

     

    Thank you.
  • Hi Again,

     

     

    Sorry for my absence on that.

     

     

    Maybee a http Trace of the original Loginprocess would help here.

     

     

    Wiesmann