Forum Discussion
scott_sams_8256
Nimbostratus
May 08, 2008Browser type deciscion for redirect?
We have an issue with Opera browser and our HTTP Profile. Until we get it nailed down (or in lieu of) is there a way to have an irule determine browser version and make a decision on use of an http profile or not based on that browser? The more I thought I figured you cannot do this since the http profile is tied to the VIP and not the Pool.
what i am looking for is something basic. i have sparse experience with irules.
if browser is Opera
dont use http profile
use this_pool
else
use http profile
use this pool
end
thanks,
scott
- hoolio
Cirrostratus
Hi Scott,when HTTP_REQUEST { Check if the client is an Opera browser if {[string tolower [HTTP::header value User-Agent]] contains "opera"}{ Disable the HTTP profile HTTP::disable Select an Opera-specific pool pool opera_pool } else { Client isn't using Opera so enable the HTTP profile HTTP::enable Select the default pool pool default_pool } }
- scott_sams_8256
Nimbostratus
thanks! we will give it a try. - scott_sams_8256
Nimbostratus
Aaron, - scott_sams_8256
Nimbostratus
as for the clocking it appears the http::disable causes issues with both browsers. does that make sense? when i comment it out, it loads yet it is still broke. - hoolio
Cirrostratus
I think it would be helpful to get a clear idea of the symptoms of the problem before trying to use an iRule to change things. If you have a support contract, this is something F5 Support should be able to help you troubleshoot. It would be helpful to capture a tcpdump on all interfaces the traffic passes through on. Remove any iRules, enable a basic HTTP profile without caching/compression enabled. Try to capture a single TCP connection in one dump where it works (text isn't garbled), and another request which fails in a second tcpdump. - scott_sams_8256
Nimbostratus
Thanks Aaron. I do have a case and I have provided the dumps to the tech, waiting for a response. I have emailed my local rep, with his Support engineers for their suggestions, and wait both sides. While i agree with your assesment - which is what we are trying to do, I am trying to come up with an alternative or a workaround that may end up being the end result (F5 TS feels it is something in the profile but we havent pinpointed it). As I have also already proven that something in there is the issue. As far as removing irules, and enabling a basic HTTP profile that isnt realistic in my case. I did create an additional vip, and profile to test with. Main issue with the dumps is tech wanted vip to pool dump as well. I have done this three times now resulting in 1gig, 500MB and 400MB capture files. At any rate, just catching pressure here to get this resolved due to the nature of this site and the implications of the issue and its effect on customers. - hoolio
Cirrostratus
Fair enough. Typically, you'd disable the HTTP profile before the request is parsed as HTTP in the CLIENT_ACCEPTED event or CLIENT_DATA. I'm not sure what impact there would be if the headers are parsed and then you disable the parsing of the rest of the HTTP in HTTP_REQUEST. Maybe someone else can add something here? - scott_sams_8256
Nimbostratus
Thanks for the follow up. Still have not heard from tech support but it looks like we found the issue. It appears the chunking settings was doing it. Our chunking settings were "Preserve" and I changed it to Rechunk. I was able to change it, resolve the issue, change it back and recreate the issue. We put this into production and it works on the WIIs as well. - hoolio
Cirrostratus
That's interesting. I wonder why it was so intermittent then. I wouldn't have thought that one time it would answer with chunked encoding and another time with a content-length when answering the same type of request. - scott_sams_8256
Nimbostratus
yea. if you think your confused.... i am a router/switch guy stuck with the duties of the f5 so i don't know too much in depth about http. not that a router/switch guy couldnt. i guess i just havent..
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