HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: File with No ext
Author: Chris-AC
Date: 10/17/2008 11:51
 
I had the same behavior:

Problem:  Files with no file extension (for what?, it has an HTTP mimetype!),
so the browser knows how to handle ..

But without HTTP (offline), there are some problems:

* mimetype is text/plain but it will be saved with the extension .html
* v3.40-2 and v3.43 both save it with the wrong extension (html)

* v3.33 (currently downloadable as previous version) add ".txt" extension -
  which is more comfortable

--> so to me it looks like a bug. <--

Seems the mimetype configuration page doesn't show the correct way ...

This "<---->" implicitly says to me, that the file extension will be
replaced/added dependent on the MIME type  -> visa versa.
BUT: It only executes it in one direction: Check the extension and then set
the
mimetype for it (manually) -> based on that mimetype set HTTrack's default
file
extension for that file.

Is it possible that HTTrack had forgotten how to look in the delivered mime
type from the source?

Proposal
--------
* would be fine if I could configure the behavior of adding file extensions
  depending of HTTP mimetype *AND* the original file extension.

i.e.
1) mime: text/html , original file extension: .html --> no change
2) mime: text/plain, original file extension: .html --> no change

3) mime: text/html, no extension --> optionally use original (no) extension
								 or force configured extension (.html)
4) mime: text/plain, no extension --> optionally use original (no) extension
								 or force configured extension (.txt)

5) misconfigured HTTP-Server:
mime: text/plain, original file extension: .html
	  			  		   --> parsing or not?	  			  		   --> what kind of extension?
 
Reply Create subthread


All articles

Subject Author Date
File with No ext

10/16/2008 00:15
Re: File with No ext

10/16/2008 15:23
Re: File with No ext

10/16/2008 20:58
Re: File with No ext

10/16/2008 21:55
Re: File with No ext

10/16/2008 23:51
Re: File with No ext

10/17/2008 11:51
Re: File with No ext

10/17/2008 11:55




8

Created with FORUM 2.0.11