Forum Discussion
i-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.
1 Reply
- 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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
