HTTrack Website Copier
Free software offline browser - FORUM
Subject: Incorrect MIME types
Author: Ryan
Date: 04/14/2006 00:34
 
Hello,
  I have run into an instance where an image's src attribute is as follows:

<img src="image.php?id=23423" />

where image.php is some script that will return an image depending on the id.
Now, it seems that HTTrack will see this link and download it.  The problem is
that php automatically sends the http header as "text/html" unless you change
it explicitly, which the author of the site in question did not do.  So what's
happening is this image is being served as MIME type "text/html" and HTTrack
is saving it as such.  
In the logs, HTTrack does report:

Warning: File not parsed, looks like binary ...

My question is this:
Is there a switch somewhere that will make HTTrack try to figure out (best
guess) the MIME type NOT based on its http header?  I know there is the MIME
association feature, but I certainly can't tell HTTrack to save all php files
as images...

Thanks,
  RYan
 
Reply


All articles

Subject Author Date
Incorrect MIME types

04/14/2006 00:34
Re: Incorrect MIME types

04/15/2006 19:45
Re: Incorrect MIME types

04/26/2006 10:08




6

Created with FORUM 2.0.11