HTTrack Website Copier
Free software offline browser - FORUM
Subject: Content-disposition error
Author: Gabriele Carioli
Date: 05/09/2003 13:54
I'm trying to grab a site containing links to dynamically 
generated files (pdf files, msword documents, images, ...).

These files are accessed with links like:


and returned via headers like this:

  HTTP/1.1 200 OK
  [... snip ...]
  Content-length: 4102
  Content-disposition: attachment; filename="cataloghi.gif"
  Last-Modified: Mon, 07 Apr 2003 13:28:52 GMT
  Connection: close
  Content-Type: image/gif

They are saved as html files (thus images are not 
displayed, files are not loaded by the proper tool, etc.) 
and not with the name suggested by "filename".

The same happens when the disposition header looks like:

  Content-disposition: inline; filename="cataloghi.gif"

I wonder if:
- I'm missing some configuration option
- this is a feature (i.e.: there's a particular reason why 
files are not saved with the specified name)
- this is a bug


When the requested url looks like:


(there's a slash betwheen php and the question mark) they 
are saved with the proper name under a "fetchblob.php" 

All articles

Subject Author Date
Content-disposition error

05/09/2003 13:54
Re: Content-disposition error

05/09/2003 20:32


Created with FORUM 2.0.11