retitle 681214 lynx-cur: lynx doesn't truncate downloaded files to 
Content-Length value
thanks

On 2012-07-11 15:19:12 +0200, Vincent Lefevre wrote:
> When downloading a file from http://partage-fichiers.ens-lyon.fr/
> lynx added 8 bytes to the file:
> 
> -rw-r--r-- 1 vlefevre vlefevre 59675248 2012-07-11 14:07:33 tst-exp.tar.xz
> -rw-r--r-- 1 vlefevre vlefevre 59675256 2012-07-11 15:02:33 tst-exp.tar.xz.3
> 
> $ cmp tst-exp.tar.xz tst-exp.tar.xz.3
> cmp: EOF on tst-exp.tar.xz
> $ tail -c 8 tst-exp.tar.xz.3 | hd
> 00000000  35 39 36 37 35 32 34 38                           |59675248|
> 00000008

This is actually the file size. This can be reproduced on a small
file:

  http://partage-fichiers.ens-lyon.fr/j1c49rqvm (web page)
  http://partage-fichiers.ens-lyon.fr/j1c49rqvm/download (file)

These links are valid up to 2012-09-10.

FYI:

$ telnet partage-fichiers.ens-lyon.fr 80
GET /j1c49rqvm/download HTTP/1.1
Host: partage-fichiers.ens-lyon.fr

HTTP/1.1 200 OK
Date: Thu, 12 Jul 2012 11:40:23 GMT
Server: Apache/2.2.16 (Debian)
X-Powered-By: PHP/5.3.3-7+squeeze13
Set-Cookie: filez=esgdt25bj270ovmq5jn9jq7b00; path=/
Expires: 0
Cache-Control: must-revalidate, post-check=0, pre-check=0
Pragma: public
Content-Disposition: attachment; filename="foo"
Content-Transfer-Encoding: binary
Content-Length: 5
Content-Type: application/octet-stream

test
5[Cursor]

The file should be truncated to the Content-Length value.

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to