dimmuboy

wget with login

Mar 10th, 2014
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.36 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Log in to the server.  This can be done only once.
  4. wget -d --keep-session-cookies \
  5.      --save-cookies cookies.txt \
  6.      --post-data 'username=YourNameMr&password=UltraSecretPswd&permanent=1' \
  7.      http://www.csfd.cz/prihlaseni/
  8.  
  9. # Now grab the page or pages we care about.
  10. wget --load-cookies cookies.txt \
  11.      http://www.csfd.cz/private_zone
Advertisement
Add Comment
Please, Sign In to add comment