Marc_13733
Feb 16, 2010Nimbostratus
Change 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: attachment; filename=somefile.pdf
Basically we need something like this:
set newheader [HTTP::header Content-Disposition]
set newheader strreplace($newheader, "inline", "attachment")
HTTP::header replace Content-Disposition $newheader
Something like this??:
set newheader string map {inline attachment} [HTTP::header Content-Disposition]