HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: Content-type from server not being used
Author: Xavier Roche
Date: 06/26/2003 06:53
 
> When downloading a URL using POST, the Content-Type is 
> reported incorrectly as 'text/html' by the server in 
> response to a HEAD request, but when the actual POST 
> request is made the server does respond with a correct 
> Content-Type type of 'application/msword' (for example).
> Sadly, it seems HTTrack is only using the response to the 
> HEAD request and thus giving the file an .HTML extension. 
> Is it possible for HTTrack to use the response from the 
> POST instead of the HEAD if Content-Type differs between 
> the two?
You can try :

1. to use "use http/1.0 requests" option (--http10) to 
avoid HEAD requests (a GET request will be used instead 
with no body read)
2. force .exe to be pdf: see MIME Types (--assume)
exe <-> application/x-pdf

Example:
httrack --assume exe=application/x-pdf 
www.example.com/whatever
 
Reply Create subthread


All articles

Subject Author Date
Content-type from server not being used

06/26/2003 03:43
Re: Content-type from server not being used

06/26/2003 06:53
Re: Content-type from server not being used

06/26/2003 18:55




3

Created with FORUM 2.0.11