[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    Bug#13854: Konqueror does not honour Content-Disposition header
From:       Dawit Alemayehu <adawit () kde ! org>
Date:       2000-11-01 0:30:52
[Download RAW message or body]

Hello Pradu,

I have implemented this feature in HTTP.  However, that is only half the stuff that needs to be
implemented I am afraid and obviously not yet tested.   Someone has to implement the remaining
half in khtml by looking at the "content-disposition" meta-data before providing the "Save As..."
dialog.  If noone has gottent to it before next-weekend I will try to complete it.f

Regards,
Dawit A.

BTW, please make sure you add the "attachment;" directive before filename=foo.  This is
a required field.  Anyways, the HTTP io-slave if tolerant enough to support

On Friday 27 October 2000 01:29 pm, pradu@thakompany.com wrote:
> Package: konqueror
> Version: KDE_2_0_RELEASE
> Severity: normal
> Installed from: CVS sources
>
> Hi,
>
> I'm working on a download page in php that starts the download of
> an arbitrary filename passed as parameter.
>
> I create 2 headers:
> Content-Disposition: filename=foo.tgz
> Content-Type=application/octet-stream
>
> Then I output the file content.
>
> Netscape handles this perfectly, popping up the save dialog with the given
> filename, and saves it.
>
> Konqueror pops up a dialog with the script filename (download.php3) and is
> not able to save the file. I only get a download.php3.part file with size
> 0.
>
>
> This is the PHP script I'm using:
> <?
> header("Content-Disposition: filename=test.tgz");
> header("Content-Type: applicaton/octet-stream");
> readfile("test.tgz");
> ?>
>
> Pradu
>
> (submitted via bugs.kde.org)

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic