Forum Discussion
GavinW_29074
Dec 23, 2014Nimbostratus
HTTP Payload logging breaks HTTP Keep-Alive
Afternoon all,
I've written an iRule to record the request/response payload on a REST HTTP API.
The rule looks like:
when CLIENT_ACCEPTED {
if { $static::PayloadLoggerDebug o...
GavinW_29074
Dec 23, 2014Nimbostratus
I was just trying that currently...
It looks like the 'Connection: Keep-Alive' value is correctly passed, along with setting the HTTP proto to 1.0.
However the response comes back with a 'Connection: close'.GET /cloudpost-web/rest/remote/3.0 HTTP/1.0
Host: client.dev.post.card.co.uk
Accept: */*
Connection: Keep-Alive
X-Forwarded-For: x.x.x.x
HTTP/1.1 200 OK
X-Powered-By: Servlet/3.0 JSP/2.2 (GlassFish Server Open Source Edition 3.1.2.2 Java/Oracle Corporation/1.7)
Server: GlassFish Server Open Source Edition 3.1.2.2
Content-Type: text/plain
Date: Tue, 23 Dec 2014 15:31:21 GMT
Connection: close
POST Remote Resource 3.0
However running direct to the application server with HTTP/1.1 works correctly and the connection is kept alive...
Cheers
GavRecent 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