SHARE
TWEET

Untitled

a guest Sep 4th, 2013 3,228 Never
  1. header='-d --header="User-Agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11"'
  2. wget "$header" http://google.com -O index
  3.        
  4. wget: invalid option -- ' '
  5. wget: invalid option -- '-'
  6. wget: invalid option -- '-'
  7. Usage: wget [OPTION]... [URL]...
  8.        
  9. header='--header=User-Agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11'
  10. wget "$header" http://website.com -O index
  11.        
  12. args=(-d '--header=User-Agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11')
  13. wget "${args[@]}" http://website.com -O index
  14.        
  15. wget $header http://website.com -O index
  16.        
  17. wget "$header" http://website.com -O index
  18.        
  19. someheader="-d --header='User-Agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11'"
  20. wget "$someheader" http://website.com -O index
RAW Paste Data
Top