| > 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
| |