Forum Discussion
Business objects / SAP error in IE due to irule
Currently we have the following irule applied to convert HTTP to HTTPS
when HTTP_REQUEST {
HTTP::respond 301 Location https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
SAP Support has provided the following irule to fix the problem
when HTTP_RESPONSE {
STREAM::disable
if {[HTTP::header exists "Cache-Control"]}
{
if {[HTTP::header "Cache-Control"] equals "no-cache"}
{
HTTP::header replace "Cache-Control" "max-age=0, must-revalidate"
}
}
if {[HTTP::header exists "Pragma"]}
{
HTTP::header remove "Pragma"
}
if {[HTTP::header exists "Content-Disposition"]}
{
set fn "[findstr [HTTP::header "Content-Disposition"] "filename=" 9]"
set cp "[substr [HTTP::header "Content-Disposition"] 0 ";"]"
log local0. "FILENAME OUTSIDE= $fn"
log local0. "CON-DISP TYPE= $cp"
if {not($fn equals "")}
{
if {[HTTP::header exists "Cache-Control"]}
{
HTTP::header replace "Cache-Control" "max-age=0, must-revalidate"
}
if {[HTTP::header exists "Pragma"]}
{
HTTP::header remove "Pragma"
}
log local0. "FILENAME SEEN = $fn"
if {$fn contains ".xls"}
{
HTTP::header replace "Content-Type" "application/vnd.ms-excel"
HTTP::header replace "Content-Type" "application/pdf"
}
}
if {[HTTP::header "Content-Type"] contains "text/html"}
{
STREAM::expression "@http:@https:@ @:9085@@"
STREAM::enable
}
}
}
Need Help With - When we just use the irule provided by SAP, the site coversion from HTTP to HTTPS does not happen. Need help with incorporating the irule provided by SAP to our existing irule.
Thanks in advance.
- George_Watkins_Historic F5 AccountMilan,
- Milan_4483NimbostratusThanks George for looking in the issue.
The error we were getting in IE8 was as follows
*******************************************************************
HTTP Status 404 - /ull
type Status report
message/ull
descriptionThe requested resource (/ull) is not available.
********************************************************************
The suggestions you provided seem to be working in IE8. We are doing additional testing. IE9 throws the following error
*****************************************************************
HTTP Status 400 - Invalid path /PlatformServices/content/view was requested
type Status report
messageInvalid path /PlatformServices/content/view was requested
descriptionThe request sent by the client was syntactically incorrect (Invalid path /PlatformServices/content/view was requested).
********************************************************************
To summarize we made the following changes
Applied HTTP to HTTPS irule to Virtual Server on port 80
Applied irule provided by SAP to Virtual Server on port 443
Recent Discussions
Related Content
* 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