Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need some help with wget!

I want to download a file, which has parameter in GET string:

/get.php?file=hackmii_installer_v1.0.zip&key=43e7ce13e9818c0b4c5737b7d061005606dfad5e

If I try to download this file with this argument, wget says it doesn't know the key field. Key will be generated for every PC downloading file and will also have to read again and again. As far as I have no problem, but how do I get this key?

share|improve this question
    
Show us the exact line you are trying to run. –  Thor Jul 14 '12 at 16:18
    
wget "bootmii.org/…; –  Board Jul 14 '12 at 17:14

1 Answer 1

If the web page isn't downloading, make sure you quote the URL, like so:

wget "http://www.example.com/doThis?key=val&other=otherval"

If this works, the problem is due to the ampersand - the shell interprets that as "execute this command in the background" Putting the url in quotes will fix this.

share|improve this answer
    
But if I do this, I get a file like this: get.php@file=hackmii_installer_v1.0.zip&key=43e7ce13e9818c0b4c5737b7d061005606df‌​ad5e –  Board Jul 14 '12 at 16:23
1  
Append -O "hackmii_installer_v1.0.zip" to the command line to force the contents to be downloaded to that filename. –  Richard Jul 14 '12 at 16:32
    
so how have to look like the full command? I didn't get it yet, what you want to tell me –  Board Jul 14 '12 at 16:34
    
If i use this command wget -O "hackmii_installer_v1.0.zip" "bootmii.org/…;, I get a file hackmii_installer_v1.0.zip, but it isn't the zip-file I want! If I triy to edit it with notepadd++ it shows me the connection-way –  Board Jul 14 '12 at 16:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.