showkey
showkey

Reputation: 320

why can not download file in wget?

there is a url:

http://118.26.57.16/1Q2W3E4R5T6Y7U8I9O0P1Z2X3C4V5B/218.11.178.160/edge.v.iask.com/95687694.hlv?KID=sina,viask&Expires=1358956800&ssig=WHgIi1wQOW&wsiphost=ipdbm

you can download it in chrome or firefox ,why i cann't download it in :

wget -c http://118.26.57.16/1Q2W3E4R5T6Y7U8I9O0P1Z2X3C4V5B/218.11.178.160/edge.v.iask.com/95687694.hlv?KID=sina,viask&Expires=1358956800&ssig=WHgIi1wQOW&wsiphost=ipdbm  

Upvotes: 5

Views: 20267

Answers (1)

Arthur Richards
Arthur Richards

Reputation: 491

Because of the special characters in the URL ('&') you need to put the URL in quotation marks:

wget -c "http://118.26.57.16/1Q2W3E4R5T6Y7U8I9O0P1Z2X3C4V5B/218.11.178.160/edge.v.iask.com/95687694.hlv?KID=sina,viask&Expires=1358956800&ssig=WHgIi1wQOW&wsiphost=ipdbm"

You could alternatively escape the special characters, but wrapping the URL in quotation marks is probably easiest.

Upvotes: 10

Related Questions