1836401 Members
2494 Online
110100 Solutions
New Discussion

wget

 
Allanm
Super Advisor

wget


I want to figure out a way where I can login into a website and leave a blog and validate that blog.

./wget --post-data 'user=guest&passwd=guest' http://my.opera.com/community/login/

Can I do that thru wget coz currently I am able to save index.html which I dont want.

Can someone help in loggining into a website and leave a blog and validate that the blog was updated.

If this can be done thru perl then please explain a little bit abt the code as well.

Thanks,
Allanm
3 REPLIES 3
Steven Schweda
Honored Contributor

Re: wget

It may be possible, but it may not be easy.
If the Web site expects to save a cookie to
identify a user, then you'll need to use wget
options like --save-cookies, --load-cookies,
and --keep-session-cookies to deal with them,
and you'll need to figure out the sequence of
Web pages to load, and the form data to use
with --post-data and/or --post-file.
Allanm
Super Advisor

Re: wget

I tried automated form submission through lynx browser but no luck :

echo "Name=xxx&Password=xxx&'log in'=Submit\n---\n" | lynx -post_data -accept_all_cookies http://my.opera.com/community/login/

Seniors!, Please help!!!

Thanks,
Allan
Steven Schweda
Honored Contributor

Re: wget

You might be able to get some extended wget
advice on the wget mailing list,
"WGET@sunsite.dk", but many people don't
already have accounts for the site you're
trying to access, and may not wish to invest
the time and effort to debug your problem.

You could look into ways in which you could
trace the traffic in a successful Web browser
session, and use wget's "-d" option to show
you in some detail what it's doing when it
runs.