difference when downloading PDF via wget and browser
Hi altogeher,
the following refers not so much to a bug per se (as wget works as desired) but to an interesting phenomenon we´ve been discussing for a while now (see: https:/
We´ve compared the download of a PDF (example: e-book from distrowatch “Linux from Scratch”, source: https:/
via browser-download (chromium) and wget and found out that the PDF-file obtained via wget is exactly 16 bytes larger than the PDF we got via the browser.
md5sums:
da65d66d0dfd995
6ec4ff88e8884c6
pdfinfo:
File size: 959330 bytes wget_Linux_
File size: 959314 bytes browser_
We´ve also established by the use of a hex viewer that the difference between the two PDFs is thus:
The wget-download is (16 bytes larger) due to this append:
[diff]:
59958c59958,59959
< 000ea350: 0d0a ..
---
> 000ea350: 0d0a 0a3c 2f62 6f64 793e 0a3c 2f68 746d ...</body>.</htm
> 000ea360: 6c3e l>
We are very interested in why that is and what the technical background may be.
Thanks a lot in advance.
Greetings.
Rosika
P.S.:
system: Linux/Lubuntu 18.04.4 LTS, 64 bit
wget: 1.19.4-1ubuntu2.2
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu wget Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply: