Unicef2k has asked for the wisdom of the Perl Monks concerning the following question:

In order to store the source of a web page, I can do the following: $ua = new LWP::UserAgent; ... $req = new HTTP::Request 'GET' => 'http:blah'; ... But suppose the page has a text field and a button and I want to enter some text into a text field and press the 'submit' button. How do I do that? Thanx in Advance.

Replies are listed 'Best First'.
Re: accessing another page
by marcos (Scribe) on Jun 19, 2000 at 13:39 UTC
    If you want your script to submit data into a form and post it via the POST method, you can still use LWP, but you have to buil a POST HTTP request. lwpcook explains how to do it. You may also have a look at another answer I gave to a similar question RE: Re: Accessing web pages
    Hope this help
    marcos
Re: accessing another page
by merlyn (Sage) on Jun 19, 2000 at 10:38 UTC