So here's a quick update...
For clarity, I need:
inside1.net to be replaced by fqdn.com
inside2.net to be replaced by fqdn.com
inside3.net to be replaced by fqdn.com
etc..
This irule (below) is successful but for whatever reason I can only get it to do one header replace at a time, rather then several, which is the objective.
when HTTP_RESPONSE {
log local1. "============================================="
log local1. "$LogString (response) - status: [HTTP::status]"
foreach aHeader [HTTP::header names] {
log local1. "$aHeader: [HTTP::header value $aHeader]"
}
log local1. "============================================="
if { [HTTP::is_redirect] } {
HTTP::header replace Location "[string map -nocase [list http%3A%2F%2Finside2.net http%3A%2F%2Ffqdn.com] [HTTP::header value Location]]"
See logs (successful)
Jan 17 09:49:28 172.16.10.88 local/tmm info tmm[5009]: Rule Test-Else : =============================================
Jan 17 09:49:28 tmm tmm[5009]: Rule Test-Else : Cookie: JSESSIONID=EE9C8FB6F1E9DB6B9A3E3CDB08446EC0
Jan 17 09:49:28 tmm tmm[5009]: Rule Test-Else : Pragma: no-cache
Jan 17 09:49:28 tmm tmm[5009]: Rule Test-Else : X-Xorwarded-For: 00.000.000.000
Jan 17 09:49:28 tmm tmm[5009]: Rule Test-Else : Cache-Control: no-cache, max-age=259200
Jan 17 09:49:28 tmm tmm[5009]: Rule Test-Else : Connection: close
Jan 17 09:49:28 tmm tmm[5009]: Rule Test-Else : =============================================
Jan 17 09:49:28 tmm tmm[5009]: Rule Test-Else : =============================================
Jan 17 09:49:28 172.16.10.88 local/tmm info tmm[5009]: Rule Test-Else : =============================================
Jan 17 09:49:28 172.16.10.88 local/tmm info tmm[5009]: Rule Test-Else : Client 121.122.122.122%6:31772 -> fqdn.com/scorm_launch/redirector?url=http%3A//inside2.net%3A80/Saba/AICCReporter%3FscormSessionKey%3DEE9C8FB6F1E9DB6B9A3E3CDB08446EC0%26sitename%3DSabaSite%26lms_data%3D%25253BconformanceLevel%25253D0%26cmi_entry%3Daireg000000000006535aises000000000002167&debug=false (response) - status: 200
Jan 17 09:49:28 172.16.10.88 local/tmm info tmm[5009]: Rule Test-Else : Date: Thu, 17 Jan 2013 14:53:27 GMT
Jan 17 09:49:28 172.16.10.88 local/tmm info tmm[5009]: Rule Test-Else : Server: Microsoft-IIS/6.0
Jan 17 09:49:28 172.16.10.88 local/tmm info tmm[5009]: Rule Test-Else : X-Powered-By: Servlet 2.4; JBoss-4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)/Tomcat-5.5
Jan 17 09:49:28 172.16.10.88 local/tmm info tmm[5009]: Rule Test-Else : X-Powered-By: Servlet 2.4; JBoss-4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)/Tomcat-5.5
Jan 17 09:49:28 172.16.10.88 local/tmm info tmm[5009]: Rule Test-Else : Connection: close
Jan 17 09:49:28 172.16.10.88 local/tmm info tmm[5009]: Rule Test-Else : Content-Type: text/plain
Jan 17 09:49:28 172.16.10.88 local/tmm info tmm[5009]: Rule Test-Else : =============================================
Jan 17 09:49:28 172.16.10.88 local/tmm info tmm[5009]: Rule Test-Else : =============================================
Jan 17 09:49:28 172.16.10.88 local/tmm info tmm[5009]: Rule Test-Else : Client 121.122.122.122%6:31772 -> fqdn.com/scorm_launch/redirector?url=http%3A//inside2.net%3A80/Saba/AICCReporter%3FscormSessionKey%3DEE9C8FB6F1E9DB6B9A3E3CDB08446EC0%26sitename%3DSabaSite%26lms_data%3D%25253BconformanceLevel%25253D0%26cmi_entry%3Daireg000000000006535aises000000000002167&debug=false (response) - status: 200
Jan 17 09:49:28 172.16.10.88 local/tmm info tmm[5009]: Rule Test-Else : Date: Thu, 17 Jan 2013 14:53:27 GMT
Jan 17 09:49:28 172.16.10.88 local/tmm info tmm[5009]: Rule Test-Else : Server: Microsoft-IIS/6.0
Jan 17 09:49:28 172.16.10.88 local/tmm info tmm[5009]: Rule Test-Else : X-Powered-By: Servlet 2.4; JBoss-4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)/Tomcat-5.5
Jan 17 09:49:28 172.16.10.88 local/tmm info tmm[5009]: Rule Test-Else : X-Powered-By: Servlet 2.4; JBoss-4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)/Tomcat-5.5
Jan 17 09:49:28 172.16.10.88 local/tmm info tmm[5009]: Rule Test-Else : Connection: close
Jan 17 09:49:28 tmm tmm[5009]: Rule Test-Else : Client 121.122.122.122%6:31772 -> fqdn.com/scorm_launch/redirector?url=http%3A//inside2.net%3A80/Saba/AICCReporter%3FscormSessionKey%3DEE9C8FB6F1E9DB6B9A3E3CDB08446EC0%26sitename%3DSabaSite%26lms_data%3D%25253BconformanceLevel%25253D0%26cmi_entry%3Daireg000000000006535aises000000000002167&debug=false (response) - status: 200
Jan 17 09:49:28 tmm tmm[5009]: Rule Test-Else : Date: Thu, 17 Jan 2013 14:53:27 GMT
Jan 17 09:49:28 tmm tmm[5009]: Rule Test-Else : Server: Microsoft-IIS/6.0
Jan 17 09:49:28 tmm tmm[5009]: Rule Test-Else : X-Powered-By: Servlet 2.4; JBoss-4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)/Tomcat-5.5
Jan 17 09:49:28 tmm tmm[5009]: Rule Test-Else : X-Powered-By: Servlet 2.4; JBoss-4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)/Tomcat-5.5
Jan 17 09:49:28 tmm tmm[5009]: Rule Test-Else : Connection: close
Jan 17 09:49:28 tmm tmm[5009]: Rule Test-Else : Content-Type: text/plain
Jan 17 09:49:28 tmm tmm[5009]: Rule Test-Else : =============================================
Jan 17 09:49:28 172.16.10.88 local/tmm info tmm[5009]: Rule Test-Else : Content-Type: text/plain
Jan 17 09:49:28 172.16.10.88 local/tmm info tmm[5009]: Rule Test-Else : =============================================