Forum Discussion
John_45559
Nimbostratus
Jun 16, 2010I will try here.. Modification http header
I need an IRule for an HTTP request.
I need to modify the HOST: xxx.xxx.xxx.xxx field in the header.
Example:
POST /webservice/services/ProvisioningService HTTP/1.1...
hoolio
Cirrostratus
Jun 16, 2010Hi John,
If you want to rewrite the HTTP host header value to the IP address of the selected server, you can use an iRule like this:
when HTTP_REQUEST_SEND {
Force evaluation in the clientside context
clientside {
Replace the Host header value with the selected server IP address
HTTP::header replace Host [LB::server addr]
}
}
Aaron
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
