Forum Discussion
nitass
Oct 08, 2012Employee
can you try something like this?
[root@ve10:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.19.79:80
ip protocol 6
rules myrule
profiles {
http {}
tcp {}
}
}
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_RESPONSE {
if {[HTTP::header exists "Set-Cookie"]}{
foreach a_set_cookie_value [HTTP::header values "Set-Cookie"] {
log local0. "[IP::client_addr]:[TCP::client_port]: Current Set-Cookie value: $a_set_cookie_value, \
updated value [string map -nocase {"; HttpOnly" ""} $a_set_cookie_value]"
HTTP::header replace "Set-Cookie" [string map -nocase {"; HttpOnly" ""} $a_set_cookie_value]
}
}
}
}
on client
[root@centos251 ~] curl -I http://172.28.19.79
HTTP/1.1 200 OK
Date: Mon, 08 Oct 2012 16:59:12 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Fri, 11 Nov 2011 14:48:14 GMT
ETag: "4183e4-3e-9c564780"
Accept-Ranges: bytes
Content-Length: 62
Set-Cookie: JSESSIONID=PppHQh1V51nRpcH0QJJNsldV0sjLcFKzndTd2PhGMKNp20nHprzd!1975339553; path=/
Connection: close
Content-Type: text/html; charset=UTF-8
on bigip
[root@ve10:Active] config tail -f /var/log/ltm
Oct 9 00:42:41 local/tmm info tmm[31087]: Rule myrule : 172.28.19.251:42446: Current Set-Cookie value: JSESSIONID=PppHQh1V51nRpcH0QJJNsldV0sjLcFKzndTd2PhGMKNp20nHprzd!1975339553; path=/; HttpOnly, updated value JSESSIONID=PppHQh1V51nRpcH0QJJNsldV0sjLcFKzndTd2PhGMKNp20nHprzd!1975339553; path=/