You are not logged in.

#1 2011-01-18 12:25:57

tony5429
Member
Registered: 2006-03-28
Posts: 1,017

[SOLVED] How to Make Wget Download like Firefox

When I access this file in Firefox I am presented with an mp3 file I can save (11072010pm.mp3): http://www.solachurch.com/sola-media?co … =2&media=0

When I download the same file with wget, it doesn't seem to know the file is actually called 11072010pm.mp3; instead it saves as "sola-media?controller=studylist&task=download&study=2&media=0"

wget "http://www.solachurch.com/sola-media?controller=studylist&task=download&study=2&media=0"

I've looked through the wget man page and can't seem to find an option to fix this. Does anyone have any ideas on how to make wget check to see what the real filename is?

Last edited by tony5429 (2011-01-18 13:02:38)

Offline

#2 2011-01-18 12:56:25

benob
Member
Registered: 2008-11-11
Posts: 187

Re: [SOLVED] How to Make Wget Download like Firefox

Use the --content-disposition option.

Offline

#3 2011-01-18 13:02:07

tony5429
Member
Registered: 2006-03-28
Posts: 1,017

Re: [SOLVED] How to Make Wget Download like Firefox

It works; thanks!!

Offline

Board footer

Powered by FluxBB