Forum Discussion
tim_pearson_938
Nimbostratus
Oct 10, 2008fooling a client and the server
I am trying to get an iPhone to connect to our iNotes server and neither are playing nice. I think I can fool it by using the F5. My issue is that the iNotes server will not accept an IP address as ...
hoolio
Cirrostratus
Oct 10, 2008Hi tpearson,
You can use HTTP::header replace Host "newhost.example.com" to replace the existing Host header:
when HTTP_REQUEST {
Check if host is an IP address
if {[HTTP::host] eq "10.198.239.248"}{
Replace host header
HTTP::header replace Host "newhost.example.com"
}
}
There isn't a host header in responses, so you shouldn't need to modify the response headers or content.
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