in reply to Help logging into a website with LWP::UserAgent

Please see Re^5: can't get WWW::Mechanize to sign in on JustAnswer. Also, consider searching this site using Super Search.

There are lots of tools to find out what your browser sends. You just need to make your script send the same data and you're done.

  • Comment on Re: Help logging into a website with LWP::UserAgent

Replies are listed 'Best First'.
Re^2: Help logging into a website with LWP::UserAgent
by SebMorris (Novice) on May 18, 2014 at 18:21 UTC

    I have found this syntax: $ua->post( $url, \%form, $field_name => $value, ... ) how do i use this to input this into the user or password form sections

      Again, you will have to learn about what HTTP is, and how it relates to HTML.

      Maybe starting by looking at the site source code gives you an idea of how the parts interact, or maybe you are better off to use WWW::Mechanize and/or one of its Javascript-enabled variants.

        Ok thanks back to the drawing board!

Re^2: Help logging into a website with LWP::UserAgent
by SebMorris (Novice) on May 18, 2014 at 17:29 UTC

    Thanks for the reply, I do know it can be done the problem is that I don't know how to input into the user and password boxes at the link I posted then click login. CPAN also seems to be down right now so i cant check on there.

        Will HTTP still work if it is a HTTPS webstie?