in reply to Re: Re: login???
in thread LWP and Logging into webpages

Perlmonks doesn't use web server authorization like that. It's all cgi script-based authentication based on cgi params or cookies.
# UNTESTED use HTTP::Request; use LWP::UserAgent; my $ua = LWP::UserAgent->new; my $req = HTTP::Request->new(POST=>'http://perlmonks.com/index.pl?op=l +ogin;user=maddfisherman;passwd=******'); my $content = $ua->request($req)->as_string;
And if you're thinking of writing a votebot, don't. :)

Replies are listed 'Best First'.
nice try but no login
by maddfisherman (Sexton) on Jun 23, 2002 at 16:14 UTC
    i tried it... this also returns the perlmonks homepage.
      Correct. You should get the perlmonks homepage, just like you would if you went to http://www.perlmonks.org/ and then logged in.

      What is it that you're trying to get?
        yes it should be the homepage but it sould be slightly different ie the link to my name should be on the list of links at the top... it gave me the ragular not logged in home page