in reply to Problem with automated form submission

Remeber that HTTP is a stateless protocol, so no two requests are related to each other.

There are several ways of getting around this, and it's hard to know which one the site you are using deploys, since you've hidden its name from us by calling it xxx.yyy.html. This makes it hard for us to solve your problem.

It's likely, though, that when the form is submitted, the site returns a cookie. Your HTTP::Request doesn't send any cookie. After you've done $form->click, you'll need to check the response to find out if any cookies have been set, and then send them with any future requests.

Replies are listed 'Best First'.
Re: Re: Problem with automated form submission
by Anonymous Monk on Oct 19, 2001 at 00:19 UTC
    Sorry, the site is http://mi.compustat.com/auth/MI_login Yes it does use cookies. But I really cannot figure out how to get/set cookies. Any suggestions please? Thanks again.

      Take a look at the documentation for HTML::Form, specifically the make_request method, which you can use instead of click.

      make_request returns an HTTP::Request object, which you can retrieve the cookies from using HTTP::Cookies module. There's a good summary of how to do this in the lwpcook document that comes with libwww-perl.