Forum Discussion
t-roy
Nov 22, 2011Nimbostratus
inserting X-Origin-Host heade when using catch command
iRule's purpose:
rewrite some URIs to /
rewrite some hosts to start with www
send some URIs to my non-default pool but putting them in a data-group like "foo" := "foopool",
My prob...
hooleylist
Nov 23, 2011Cirrostratus
Hi Troy,
So you're trying to use catch to handle errors when inserting the header? How about something like this:
if {[HTTP::host] ne ""}{
catch {HTTP::header insert lws X-Origin-Host "[HTTP::host]"}
}
Aaron
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