Forum Discussion
t-roy
Nimbostratus
Nov 22, 2011inserting 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...
hoolio
Cirrostratus
Nov 22, 2011Hi 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
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