Forum Discussion
Joe_D_Rozario_4
Nimbostratus
Jul 29, 2008Header values with curly bracktes problem
I would really appreciate some help in changing http headers.
Objective: I have to change the date format of the cookies having PDT to GMT.
I tried to access cookie "expi...
Nicolas_Menant
Employee
Jul 29, 2008Hi,
This is a really interesting request but i don't have access to my lab so here is an example about how to do it!
To replace PDT to GMT:
when HTTP_RESPONSE {
foreach aCookieName [HTTP::cookie names] {
set cookie_val [HTTP::cookie value $aCookieName]
HTTP::cookie $aCookieName "[string map {PDT GMT} $cookie_val]"
}
}
I check only the syntax and it is fine on my iRule editor
HTH
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
