Forum Discussion
Marc_13733
Nimbostratus
Feb 16, 2010Change Content Disposition from Inline to Attachment
Our DMS server returns only inline disposition headers:
Content-Disposition: inline; filename=somefile.pdf
We need to replace this header with the following:
Content-Disposition...
hoolio
Cirrostratus
Feb 16, 2010Hi Marc,
Can you try this?
when HTTP_RESPONSE {
Check if there is a Content-Disposition header with inline in the value
if {[string tolower [HTTP::header Content-Disposition]] contains "inline"}{
Replace the Content-Disposition header with inline replaced with attachment
HTTP::header replace Content-Disposition [string map -nocase "inline attachment" [HTTP::header Content-Disposition]]
}
}
Aaron
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
