Bug 55775 - "Content-Disposition" HTTP header field not supported
Summary: "Content-Disposition" HTTP header field not supported
Status: RESOLVED DUPLICATE of bug 31662
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Mandrake RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-09 21:09 UTC by daniele
Modified: 2003-03-09 22:42 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description daniele 2003-03-09 21:09:49 UTC
Version:            (using KDE KDE 3.1)
Installed from:    Mandrake RPMs

(I've seen there is already a bug marked as new dealing with this issue, but it is two years old! [kde 2.2]).

The http header: "Content-Disposition: attachment; filename=XXX" isn't handled correctly.
 It is quite a problem when you have binary data stored within a database: you can use the content-disposition header field to force a "save as/open with" window, and  provide a name for the file to be saved/opened. 
 Mozilla handles it correctly: it prompts just what I'd expect. 
 Konqueror just ignores it, both with binary and plain text files: if I remove the header, it just behaves the same. 

It is a problem, for example, if you need to open gzipped files stored within a dbms: konqueror automatically calls ark, which complains for the extension of the file is not ".gz", although I have esplicitly defined the file name to be used in the header.

 I'm using mandrake cooker's kde 3.1. 
 
I can't provide a test case as I'm using a local network web application.
Comment 1 daniele 2003-03-09 21:17:57 UTC
Actually, it seems as the header is correctly interpreted, but not used: for example, I  
 get this prompt for saving a file stored within the DB (I used an extension unknown  
 to the system):  
  
 Open "http://127.0.0.1/~...unti.php?paperId=7" (7_testfile.xcgh)?  
  
 "7_testfile.xcgh" being the name I've forced via the header.  
  
 Still, when I hit "save as", the displayed name is not "7_testfile.xcgh", but 
"visualizzaAppunti.php", which is the name of the script that set the header and 
extracted the contents of the file from the dbms.  
  
 Anyhow, on known filetypes I should be prompted as well, while the default handler  
 is silently used.  
  
 Daniele   
Comment 2 Dawit Alemayehu 2003-03-09 22:42:25 UTC

*** This bug has been marked as a duplicate of 31662 ***