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 want to download this webpage using wget in Win7 : http://www.att.com/shop/wireless/devices/smartphones.deviceListView.xhr.flowtype-NEW.deviceGroupType-Cellphone.paymentType-postpaid.packageType-undefined.html?commitmentTerm=24&taxoStyle=SMARTPHONES&showMoreListSize=1000

I am using this command to do this :

wget -E -H -k -K -p -e robots=off -P /Downloads/AT&T_2013-01-29/ http://www.att.com/shop/wireless/devices/smartphones.deviceListView.xhr.flowtype-NEW.deviceGroupType-Cellphone.paymentType-postpaid.packageType-undefined.html?commitmentTerm=24&taxoStyle=SMARTPHONES&showMoreListSize=1000

I am getting taxostyle not defined, commitmentterm not defined or recognizble method error

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

You have two ampersands ( & ) and question mark in your URL.

I am not sure how your windows shell handles that, it probably depends on what you are using. (Cmd.exe? Powershell, Hamilton C-shell for windows, cygwin-bash?)

Regardless, many of those will try to parse those and you will end up with wget getting a different result than you expect. You would either need to escape those chars (how depends on the shell), or use " marks.

If I use wget -E -H -k -K -p -e robots=off "http://www.att.com/shop/wireless/devices/smartphones.deviceListView.xhr.flowtype-NEW.deviceGroupType-Cellphone.paymentType-postpaid.packageType-undefined.html?commitmentTerm=24&taxoStyle=SMARTPHONES&showMoreListSize=1000" in bash3 shell on BSD (notice the added quotes around the download URL) then the command does seem to work. (It downloads 3 directories, 2.ecom.attccc.com, 3.ecom.attccc.com and www.att.com)

share|improve this answer
add comment

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.