[Slackbuilds-users] Problem with SourceForge and wget

Christoph Willing chris.willing at iinet.net.au
Wed Mar 30 11:56:07 UTC 2016


On 30/03/16 18:22, Nicolas Kovacs wrote:
> Le 30/03/2016 09:52, Christoph Willing a écrit :
>> Do you have an example url that shows this behaviour?
>
> But seriously, here's an example.
>
> DOWNLOAD="http://downloads.sourceforge.net/project/gtkcdlabel/gtkcdlabel/1.15/gtkcdlabel-1.15.tar.bz2"
>

OK, now back to my earlier mention of the --no-content-disposition 
option - I had it the wrong way around, so for that url I have:

     wget --content-disposition 
http://downloads.sourceforge.net/project/gtkcdlabel/gtkcdlabel/1.15/gtkcdlabel-1.15.tar.bz2
...
HTTP request sent, awaiting response... 302 Found
...

HTTP request sent, awaiting response... 200 OK
...
HTTP request sent, awaiting response... 200 OK
Length: 36468 (36K) [application/octet-stream]
Saving to: ‘gtkcdlabel-1.15.tar.bz2’

gtkcdlabel-1.15.tar.bz2 
100%[==============================================>]  35.61K  50.2KB/s 
    in 0.7s

2016-03-30 21:38:11 (50.2 KB/s) - ‘gtkcdlabel-1.15.tar.bz2’ saved 
[36468/36468]


However with no content disposition (the default for wget), I also see a 
bunch of connections to different servers and finally failure:
     wget --no-content-disposition 
http://downloads.sourceforge.net/project/gtkcdlabel/gtkcdlabel/1.15/gtkcdlabel-1.15.tar.bz2
...
...
...
20 redirections exceeded.


So the suggestion should have been to turn content-disposition on (not 
off) either explicitly at the command line or in /etc/wgetrc (or 
~/.wgetrc) by adding the line 'content-disposition = on'

BTW you can also add 'continue = on' in that file to dispense with the 
need for '-c' at the command line.

chris



More information about the SlackBuilds-users mailing list