in reply to Problems posting form with LWP

I can answer this, because I was doing exactly the same thing :)

The form will not work unless you have the session cookie set. Perform a GET on the page, then ensure you've got that cookie in your cookie jar when you submit the form.

I couldn't be bothered to write code for this though, so I just created two bookmarks on my toolbar and clicked them quickly in succession ;-) One gets the page, the other loaded a form that autosubmitted itself with JS.

.02

cLive ;-)

ps - you can see the cookie issue by navigating to the page, deleting your session cookie, then submitting the form.

Replies are listed 'Best First'.
Re: Re: Problems posting form with LWP
by dba (Monk) on Nov 24, 2003 at 16:30 UTC
    Thanks for replies. I can get the HTML page without any issues. The result HTML page should contain the status of the application receipt#. The perl script is not posting, and iam getting the same page as the link
    CLive,
    Could you please provide some sample code or link where I can see session cookie management?
    Koschei,
    I tried WWW::Mechanize, but it did not help...
      No code, but read this.

      cLive ;-)