Forum Discussion
greg_chew_11034
Nimbostratus
Sep 01, 2005http::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_95363Historic F5 AccountI 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. - greg_chew_11034
Nimbostratus
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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
