Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: log into a website via perl clientby newrisedesigns (Curate) |
on Feb 06, 2004 at 17:56 UTC ( [id://327167]=note: print w/replies, xml ) | Need Help?? |
Simple question, no simple solution. If your router is like mine (dLink) it uses Basic Authentication (mentioned by Sol-Invictus) to allow access to the router's functions. What you'll have to do is provide your password like mentioned above, then use LWP to do either a GET or POST (no difference, really) to the page on your router in which you want to modify settings. You'll send the variables in the GET/POST request, and what should be returned is the HTML of the page confirming the changes. Pseudo-code:
Read the documentation on LWP. It's really useful stuff. John J Reiser
In Section
Seekers of Perl Wisdom
|
|