bdgenz has asked for the wisdom of the Perl Monks concerning the following question:
I've got a text file I read into a variable (file3) then attempt to post. The form text area is "form_zone" and consists of many lines. With the same code I'm able to login to the site in a previous step so the problem must be the data from file3 is only outputting the first line of the text file.
A code snippet:
my $response = POST (URI, [ form_zone => @file3, submit => 'Submit', f +orm_result => 'true', menu => 'edit_dns', user => 'username', auth => + '*:strange_string', account => 'account_name', mbox => ''], REFERRER + => LAST_PAGE); $request = $ua->request($response); if ($request->is_success) { print $request->content, "\n"; } else { print $request->status_line, "\n"; }
Any ideas would help!
TIA
20041228 Janitored by Corion: Fixed formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP/HTTP::Request::Common - form submission
by Jenda (Abbot) on Dec 28, 2004 at 21:18 UTC | |
by bdgenz (Initiate) on Dec 28, 2004 at 22:33 UTC | |
by bdgenz (Initiate) on Dec 28, 2004 at 22:21 UTC |