in reply to Small problem with handling cookies

http://roryne.com/mail.txt
Before I go look at www::mechanize, there's all my code so far. I'm very new to perl and I know it's sloppy and not the most efficient, but eh, it works (almost :|).
  • Comment on Re: Small problem with handling cookies

Replies are listed 'Best First'.
Re^2: Small problem with handling cookies
by moritz (Cardinal) on Oct 16, 2007 at 09:08 UTC
    As I wrote before, it uses a get request when a post is expected. But WWW::Mechanize is really the better idea.
      Try running it how it is right now and then change it to a post. When you open the html file after a GET, there's a problem with the login (cookies being the problem). If you do it with a POST, you get absolutely no error and it acts like it didn't do anything.
      I'll look at WWW::Mechanize tomorrow, it's 4am and I have class at 9. Thanks for the heads up on the module.
        I still can't seem to get the hang of this... even with WWW::Mechanize. I swear I get weird errors about the method not being found in Mechanize, despite me looking off the module help page. I'm just trying to login to Yahoo's webmail at the moment... I didn't think it'd be this hard :(