Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 4th, 2013  |  syntax: None  |  size: 0.93 KB  |  views: 2,196  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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