wget-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wget2 | url too long, file not created (#526)


From: Stefan Kittel
Subject: Re: wget2 | url too long, file not created (#526)
Date: Tue, 19 May 2020 08:19:42 +0000



Stefan Kittel commented:


Hello Tim,

I tried --cut-file-get-vars but it does not help me here.
It cuts the get-variables bevore doing anything. But here I have many (about 
200) urls with the same url.
So the system grabs only one

https://www.coffema.de/service/downloads?field_dateityp_tid=All
https://www.coffema.de/service/downloads?field_dateityp_tid=A
https://www.coffema.de/service/downloads?field_dateityp_tid=B

I see multiple solutions which needed to be implemented in the code.
a) create a hash (e.g. sha256) over the get vars
--hash-get-vars
filename = 
www.coffema.de/service/downloads?[[e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855]]
This would reduce the file length.
This would be any easy fix which can be added shorty.

b)create a hash for the full uri
--hash-get-vars
filename = e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
this is a rather deep impact to the code

c) shorten the filename after 250 chars with an increasing number
filename = 
www.coffema.de/service/downloads?field_dateityp_tid=All&field_datei_kategorie_tid=8&field_prod.1

Stefan

-- 
Reply to this email directly or view it on GitLab: 
https://gitlab.com/gnuwget/wget2/-/issues/526#note_344968885
You're receiving this email because of your account on gitlab.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]