Forum Discussion
Ross_Fitheridge
Nimbostratus
Nov 09, 2007rewrite absolute URI to relative URI
we are having difficulty with a Virtual Server, that is configured for SSL server off-load. Most clients work, however we have one (the most important (of course) that comes through a Proxy). The Sq...
Ross_Fitheridge
Nimbostratus
Nov 12, 2007Hi Deb,
the Version is 9.1.2
The URI does not return the query string. it seems in the code I original wrote I had the query string duplicated!
This is the code I am using to prove this is .....
when HTTP_REQUEST {
Use string map to replace "https:" with "http:" in the URI
set modifiedUri [string map {https: http:} [HTTP::uri]]
set relativeUri "[URI::path [HTTP::uri]][URI::basename [HTTP::uri]]"
log local0. "Original URI: [HTTP::uri], modified URI: $modifiedUri , Relative Uri: $relativeUri , IP: [IP::client_addr], HTTP Query: [HTTP::query]"
HTTP::uri $modifiedUri
}
And a log entry ....
Nov 12 08:44:56 tmm tmm[738]: Rule uri_https_to_http : Original URI: https://partneruat.acmebusiness.com:8443/OTAService/, modified URI: http://partneruat.acmebusiness.com:8443/OTAService/ , Relative Uri: /OTAService/ , IP: 129.35.201.38, HTTP Query: xml
RossF
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