ultranerds has asked for the wisdom of the Perl Monks concerning the following question:
my $ua = LWP::UserAgent->new(); my $request = POST( $url, [ pdfColor => '#f7540e', proName => \@proName, proDesc => \@proDesc, amount => \@amount, price => \@price, vat => \@vat, discount => \@discount, total => \@total ] ); my $content = $ua->request($request)->as_string();
Array ( [pdfColor] => #f7540e [proName] => test [proDesc] => Some description [amount] => 3 [price] => 30 [vat] => 0 [discount] => 0 [total] => 90 )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP::UserAgent POST, pass array?
by hippo (Archbishop) on Aug 25, 2015 at 13:50 UTC | |
by ultranerds (Hermit) on Aug 25, 2015 at 14:05 UTC | |
|
Re: LWP::UserAgent POST, pass array?
by 1nickt (Canon) on Aug 25, 2015 at 13:56 UTC |