Forum Discussion
bongshanks
Nimbostratus
Dec 26, 2017Scan command and variables in a SSL transaction
Hey folks,
I'm trying to finish an iRule and I'd appreciate some critiquing or advice. I'm trying to capture some client IP/SSL cipher information as well as a 23 character string of text that will...
VijayG_122615
Nimbostratus
Mar 13, 2013
trying to redirect to new SAP PI Adapter url with Authorization .
when HTTP_REQUEST {
Debug off (0) , On (1)
set debug 1
SAP PI 7.3 standard RNIF Adapter uri
set pirnifuri "/MessagingSystem/receive/RNIFAdapter/RNIF"
If Inbound host matches the b2b hosts then redirect
if {[matchclass [http_host] equals pidxb2bhosts] and [HTTP::uri] equals "/RosettaNet" } {
inbound host and uri
if { $debug>=1 } {log local0. "PIDX:Inbound host and uri: [HTTP::host][HTTP::uri]"}
dev Redirect
if { [HTTP::host] starts_with "b2b0031" and [HTTP::uri] equals "/RosettaNet" } {
HTTP::header insert Authorization "Basic WElfQVgwMDFEVjAwOmxpdmU0ZnJlZTE="
set devsappihost [ class match -value dev equals sappihosts]
if { $debug>=1 } {log local0. "Redirecting to dev SAP PI"}
HTTP::redirect "http://$devsappihost$pirnifuri"
}
}
}