Dne 24.2.2011 18:06, Xavier Roche napsal(a):
Le 24/02/2011 15:17, Petr Gajdůšek a écrit :
I use httrack to mirror an intranet web. Content of some files (they
change between each mirror) is replaced with HTTP 416 error message in
HTML.
Could you enable the debug header feature (--debug-headers) and report
both request and reply of a buggy page please ?
Hi,
Sorry, I tried this but cannot find any information produced by
--debug-headers. There is no additional entries in hts-log.txt nor in
console with -v parameter.
Here are entries from wireshark for one of failed files:
HTTP request (at 13.835486 seconds)
GET
/~petr/obce/testing/www.skrdla66.cz/engine/javascripts_new/multiBox/Images/mb_Components/leftDisabled.png
HTTP/1.1
Referer: http://localhost/~petr/obce/testing/www.skrdla66.cz/
Cookie: $Version=1; lang=cz; $Path=/; accesible=off; $Path=/;
category=0; $Path=/
Connection: Keep-Alive
Host: localhost
User-Agent: Mozilla/5.0 (X11; U; Linux i686; cs-CZ; rv:1.9.1.16)
Gecko/20110107 Iceweasel/3.5.16 (like Firefox/3.5.16)
Accept: image/png, image/jpeg, image/pjpeg, image/x-xbitmap,
image/svg+xml, image/gif;q=0.9, */*;q=0.1
Accept-Language: en, *
Accept-Charset: iso-8859-1, iso-8859-*;q=0.9, utf-8;q=0.66, *;q=0.33
Accept-Encoding: gzip, identity;q=0.9
HTTP answer (at 13.837991 seconds)
HTTP/1.1 200 OK
Date: Thu, 24 Feb 2011 20:22:45 GMT
Server: Apache/2.2.17 (Debian)
Last-Modified: Sun, 06 Feb 2011 00:48:11 GMT
ETag: "8079b-30f-49b92783348c0"
Accept-Ranges: bytes
Content-Length: 783
Keep-Alive: timeout=15, max=79
Connection: Keep-Alive
Content-Type: image/png
... PNG data follows, I checked the file and it is correct.
Now this entry appears in hts-log.txt
21:22:45 Info: engine: warning: entry cleaned up, but no trace
on heap:
localhost/~petr/obce/testing/www.skrdla66.cz/engine/javascripts_new/multiBox/Images/mb_Components/leftDisabled.png
(skrdla66_cd1/localhost/_petr/obce/testing/www.skrdla66.cz/engine/javascripts_new/multiBox/Images/mb_Components/leftDisabled.png)
All other URLs (with some same failures) are processed and just before
httrack exits failed files are retried:
HTTP request (at time 218.329301 second)
GET
/~petr/obce/testing/www.skrdla66.cz/engine/javascripts_new/multiBox/Images/mb_Components/leftDisabled.png
HTTP/1.1
If-Unmodified-Since: Sun, 06 Feb 2011 00:48:11 GMT
Range: bytes=783-
Referer:
http://localhost/~petr/obce/testing/www.skrdla66.cz/engine/javascripts_new/multiBox/Styles/multiBox.css
Cookie: $Version=1; lang=cz; $Path=/; accesible=off; $Path=/;
category=0; $Path=/
Connection: Keep-Alive
Host: localhost
User-Agent: Mozilla/5.0 (X11; U; Linux i686; cs-CZ; rv:1.9.1.16)
Gecko/20110107 Iceweasel/3.5.16 (like Firefox/3.5.16)
Accept: image/png, image/jpeg, image/pjpeg, image/x-xbitmap,
image/svg+xml, image/gif;q=0.9, */*;q=0.1
Accept-Language: en, *
Accept-Charset: iso-8859-1, iso-8859-*;q=0.9, utf-8;q=0.66, *;q=0.33
Accept-Encoding: gzip, identity;q=0.9
HTTP answer (at 218.356642 seconds)
HTTP/1.1 416 Requested Range Not Satisfiable
Date: Thu, 24 Feb 2011 20:26:09 GMT
Server: Apache/2.2.17 (Debian)
Vary: Accept-Encoding
Content-Encoding: gzip
Keep-Alive: timeout=15, max=51
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
It is trying to get the content just after the end of file and already
stored file content is replaced with HTTP error in HTML.
Cheers, Petr
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org