Guest User

Untitled

a guest
Feb 20th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. http://mysite.exmaple.com/login/login.html
  2.  
  3. http://mysite.example.com/index.html
  4.  
  5. wget -r --http-user username --http-password 'mypassword' http://mysite.example.com/index.html
  6.  
  7. wget --save-cookies cookies.txt
  8. --keep-session-cookies
  9. --post-data 'user=username&password=mypassword'
  10. --delete-after
  11. http://mysite.example.com/login/login.html
  12.  
  13. wget --load-cookies cookies.txt
  14. http://mysite.example.com/index.html
Add Comment
Please, Sign In to add comment