Forum Discussion

greg_chew_11034's avatar
greg_chew_11034
Icon for Nimbostratus rankNimbostratus
Sep 01, 2005

http::redirect and http::close and not closing the session.

Hey all.

 

 

I am trying to do a redirect to www.foo.com/test.

 

 

HTTP/1.0 302 Found

 

Location: http://www.foo.com/browse/home.html

 

Server: BIG-IP

 

Connection: Keep-Alive

 

Content-Type: text/html

 

Content-Length: 0

 

 

This redirect works fine, but in the same browser, if you do a www.foo.com/gohere, i get in my host header

 

 

GET /gohere HTTP/1.1

 

Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*

 

Accept-Language: en-us

 

Accept-Encoding: gzip, deflate

 

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)

 

Host: www.food.com

 

Connection: Keep-Alive

 

 

it seems that it's bypassing the f5 altogether and my irule set and tries to look for a directory called /gohere.

 

 

thoughts?

 

 

i have tried using HTTP::close before and after my redirect to no avail.

 

12 Replies

  • unRuleY_95363's avatar
    unRuleY_95363
    Historic F5 Account
    I think that bug is probably easier to fix than getting the browser to close the connection after the redirect.

     

     

    Part of the problem is that HTTP::redirect reuses the connection header from the request. However, if you use HTTP::respond you may be able to override the Connection header. I'm not sure this will work and would suggest instead you fix the logic of your rule to catch the case when the request comes back correctly fixed up. Or implement my suggestion about using the http_closed variable above.

     

  • adding TCP::close at the end of event disable all allowed the requests to close and every new request to continue on as a new session.