Closed mruprich closed 4 days ago
The request headers send by wget1 and wget2 are slightly different. Some servers inspect the headers and provide content based on what they think is best for the request.
In many cases servers look at the User-Agent header, but it can also be the Accept-Encoding header that results in different server behavior. I can't reproduce with the URLs from your description, the response is always empty for me.
You can see with --debug
what the difference is. E.g. wget2 may use http2, so a first try could be with --no-http2
to use the same protocol as wget1 does.
@mruprich Please feel free to reopen when you have more information or a reproducer that works for anybody but you.
Running wget2 on a .txt file on dropbox does not download the actual file but rather an html page:
With wget1 the actual file and its contents are printed:
I tried --spider with the old wget (the new one does not have this info in the output) and it says that the file is considered [application/json]. But wget1 could download it fine.
Regards, Michal Ruprich