Skip to content

Making wget downloads file with proper filenames

How many times have you tried to download files from a web page that has the following format: and you get ?filename=foobar as the filename?

That’s because wget is not reading the Content-Disposition header. In order to make wget read that header one must add the following parameter:

wget --content-disposition

wget --content-disposition

PS: This only works for newer wget versions though. eg: wget (1.12-1)

keywords: nova, openstack, wget, content-disposition

Posted in Knowledge Base.

Tagged with .

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Some HTML is OK

or, reply to this post via trackback.