Forum Discussion
Dominique_Perar
Nimbostratus
Sep 15, 2017i-rule for HTTP header -Accept-Language- based on the URI
Due to a bug in a server, As a workaround I need to:
Based on the URI and the http-header Accept-Language Change the http-header Accept-Language
So the server receive a modifed Accept-language value.
I write an iRule: if { [HTTP::uri] starts_with "/MyDirectoryXXX" } then { if { [HTTP::header "Accept-Language"] starts_with "eu"} then {HTTP::header replace Accept-Language "es-CR"¶} }
Does its seems the correct approach ?
Thank you.
- Faruk_AYDIN
Altostratus
Yes, your idea can fix the issue. On the other hand you should consider that there are several Accept-Language formats. link
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