Forum Discussion
aandreyy_293459
Nimbostratus
Oct 10, 2017stream iRule not working with reg
hi
i have stream iRule that change all http to https:when HTTP_REQUEST { tell server not to compress response HTTP::header remove Accept-Encoding
disable STREAM for request flow
STREAM::disable
} when HTTP_RESPONSE {
catch and replace redirect headers
if { [HTTP::header exists Location] } {
HTTP::header replace Location [string map {"http://" "https://"} [HTTP::header Location]]
}
only look at text data
if { [HTTP::header Content-Type] contains "text" } {
Replace http:// with https:// UNLESS the original string is http://www.w3.org
STREAM::expression {@http//@https://@}
enable STREAM
STREAM::enable
}
}
and need bypass url not changing to https, but when i am adding something like STREAM::expression {@http:(?!//@} I am getting
can't compile regular expression - (http:(?:?!//))
have any ideas how to do it in other way?
No RepliesBe the first to reply
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
