petetbp has asked for the wisdom of the Perl Monks concerning the following question:
$response = $ua->request(GET "$IS_URL/$session_id/Service/SysAdmin/Dat +aImport/1/2"); my $tree = HTML::TreeBuilder->new; $tree->parse($response->content); $tree->eof(); my @forms = $tree->find_by_tag_name('FORM'); die "What, no forms" unless @forms; my $f = HTTP::Request::Form->new($forms[0], "$IS_URL/$session_id/Servi +ce/SysAdmin/DataImport/1/2"); $f->field("BUTTON", "Upload"); $f->field("DescriptionFile", "StockLevelImport.cfg"); $f->field("DataFile", [undef, "stock_level", $file]); my $response = $ua->request($f->press()); print $response->content if $response->is_success;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't open file ARRAY
by antifun (Sexton) on Oct 15, 2002 at 14:22 UTC | |
|
Re: Can't open file ARRAY
by Abigail-II (Bishop) on Oct 15, 2002 at 14:24 UTC | |
|
Re: Can't open file ARRAY
by Joost (Canon) on Oct 15, 2002 at 14:25 UTC |