URGENT: libwww-perl: automated form filling
Hi all, Debian people. I'm quite new to perl and, in particular to libwww-perl. I fell on it because I was looking for some API to write www clients to automatically fill forms. The problem I have is that I cannot get the same result from the server as I obtain using a web browser. What happens is that the result is the same document I use as HTTP::Request while, if I use a web browser, clicking the submit button I get a second document. Does anybody know/understand the problem? Where to find source of information/examples? Is there any better solution than libwww-perl? (note that the problem persists using lynx -post_data) Thanks in advance, Alberto Maurizi
Re: URGENT: libwww-perl: automated form filling
On Sun, Mar 19, 2000 at 07:22:13PM +0100, Alberto Maurizi wrote: Hi all, Debian people. I'm quite new to perl and, in particular to libwww-perl. I fell on it because I was looking for some API to write www clients to automatically fill forms. The problem I have is that I cannot get the same result from the server as I obtain using a web browser. What happens is that the result is the same document I use as HTTP::Request while, if I use a web browser, clicking the submit button I get a second document. Does anybody know/understand the problem? Where to find source of information/examples? Is there any better solution than libwww-perl? (note that the problem persists using lynx -post_data) Thanks in advance, Alberto Maurizi Please don't use a subject containing URGENT unless there is some reason for it. Is a nuclear reactor likely to go into meltdown if you don't solve this within 2 hours ? If you don't post the code in your program which you suspect to be wrong, you will receive little help other that general guidelines. Post the code. We are not psychics. (Well, I'm not, anyway :-) Documentation. If there is a Guiness Book of World Records award for quantity and quality of free documentation. I'm fairly sure the answer you need lies in the HTTP::Request or HTTP::Request::Common manpages. The latter has an example POSTing to a web server. Unless you are doing something advanced, (and in most instances if you are) libwww-perl will do everything you need. Better to solve the problem using the appropriate tool than embark on a different solution with an inferior one. -- Regards, Paul
Re: URGENT: libwww-perl: automated form filling
I have the same problem here. I have posted to perl.misc and libwww mailinglist without any success. However, the answers are positive, and lots people mentioned to have a go on the module CGI.pm. Please have a look at the following form: https://registry.connect.com.au/cgi-bin/na_create.cgi It woule be great if I can use perl to automate it. Shao. Alberto Maurizi [EMAIL PROTECTED] wrote: Hi all, Debian people. I'm quite new to perl and, in particular to libwww-perl. I fell on it because I was looking for some API to write www clients to automatically fill forms. The problem I have is that I cannot get the same result from the server as I obtain using a web browser. What happens is that the result is the same document I use as HTTP::Request while, if I use a web browser, clicking the submit button I get a second document. Does anybody know/understand the problem? Where to find source of information/examples? Is there any better solution than libwww-perl? (note that the problem persists using lynx -post_data) Thanks in advance, Alberto Maurizi -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _