Forum Discussion
Steve_W_85246
Mar 21, 2014Nimbostratus
Accessing Custom Request Header fields inserted from Back end Application
Is there a way to access Custom HTTP Request Header fields that are inserted from a backend application using iRules? I am accessing a web page from the webserver that is displaying all the Request H...
Kevin_Stewart
Mar 23, 2014Employee
Try this:
when HTTP_REQUEST {
log local0. "Request URI = [HTTP::uri]"
foreach x [HTTP::header names] {
log local0. "Request header($x) = [HTTP::header $x]"
}
}
when HTTP_RESPONSE {
log local0. "Response status = [HTTP::status]"
foreach x [HTTP::header names] {
log local0. "Response header($x) = [HTTP::header $x]"
}
}
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