Forum Discussion
wyuen_99269
Altostratus
May 07, 2015How to search a string for multiple values and replace with another string
Inserting cookie: PHPSESSID=eur026tal67g54keu6oj5gphh6; expires=Fri, 08-May-2015 13:23:10 GMT; path=/; domain= HttpOnly
Need code to strip "HttpOnly" or "httponly"
HTTP::header insert "Set-...
nitass
Employee
May 08, 2015Need code to strip "HttpOnly" or "httponly"
doesn't HTTP::cookie httponly work?
HTTP::cookie
https://devcentral.f5.com/wiki/iRules.HTTP__cookie.ashx
configuration
root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm virtual bar
ltm virtual bar {
destination 172.28.24.10:80
ip-protocol tcp
mask 255.255.255.255
pool foo
profiles {
http { }
tcp { }
}
rules {
qux
}
source 0.0.0.0/0
source-address-translation {
type automap
}
vs-index 4
}
root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm pool foo
ltm pool foo {
members {
200.200.200.101:80 {
address 200.200.200.101
}
}
}
root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm rule qux
ltm rule qux {
when HTTP_RESPONSE {
HTTP::cookie httponly PHPSESSID disable
}
}
trace
[root@ve11c:Active:In Sync] config ssldump -Aed -nni 0.0 port 80
New TCP connection 1: 172.28.24.8(53626) <-> 172.28.24.10(80)
1431064577.3957 (0.0016) C>S
---------------------------------------------------------------
HEAD / HTTP/1.1
User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 OpenSSL/1.0.1l zlib/1.2.3 libidn/1.18
Host: 172.28.24.10
Accept: */*
---------------------------------------------------------------
New TCP connection 2: 200.200.200.14(53626) <-> 200.200.200.101(80)
1431064577.3977 (0.0009) C>S
---------------------------------------------------------------
HEAD / HTTP/1.1
User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 OpenSSL/1.0.1l zlib/1.2.3 libidn/1.18
Host: 172.28.24.10
Accept: */*
---------------------------------------------------------------
1431064577.4007 (0.0029) S>C
---------------------------------------------------------------
HTTP/1.1 200 OK
Date: Fri, 08 May 2015 05:37:12 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Sun, 09 Feb 2014 08:39:51 GMT
ETag: "41879c-59-2a9c23c0"
Accept-Ranges: bytes
Content-Length: 89
Set-Cookie: PHPSESSID=eur026tal67g54keu6oj5gphh6; expires=Fri, 08-May-2015 13:23:10 GMT; path=/; domain=www.supportourtroopscanada.com.; HttpOnly
Content-Type: text/html; charset=UTF-8
---------------------------------------------------------------
1431064577.4008 (0.0050) S>C
---------------------------------------------------------------
HTTP/1.1 200 OK
Date: Fri, 08 May 2015 05:37:12 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Sun, 09 Feb 2014 08:39:51 GMT
ETag: "41879c-59-2a9c23c0"
Accept-Ranges: bytes
Content-Length: 89
Set-Cookie: PHPSESSID=eur026tal67g54keu6oj5gphh6; expires=Fri, 08-May-2015 13:23:10 GMT; path=/; domain=www.supportourtroopscanada.com.;
Content-Type: text/html; charset=UTF-8
---------------------------------------------------------------
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
