LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > ted_chou12
User Name
Password

Notices


Rate this Entry

Utilizing cookies with wget

Posted 12-05-2011 at 01:51 AM by ted_chou12

Code:
wget "http://pieayu.com/member.php?mod=logging&action=login&loginsubmit=yes&infloat=yes&lssubmit=yes&username=ted_chou12&password=1234&cookietime=2592000" --save-cookies "test.txt"
wget "http://pieayu.com/forum.php?mod=viewthread&tid=124237&extra=page%3D1" --load-cookies "test.txt"
wget "http://pieayu.com/forum.php?mod=attachment&aid=NTY4ODF8YTc2OTJiZWN8MTMyMzA2OTY1Mnw5MDM3MnwxMjQyMzc%3D" --load-cookies "test.txt"
Requires login form that enables cookie option.
For my own memory and anyone looking for an example.
Ted
Posted in Uncategorized
Views 861 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 07:40 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration