Thread LWP und proxy (52 answers)
Opened by perl-snaks at 2012-04-25 13:04

Linuxer
 2012-05-04 16:42
#158068 #158068
User since
2006-01-27
3879 Artikel
HausmeisterIn

user image
Mit den Brocken, die man so kriegt, ist es schwer zu raten, aber versuchen wir es mal.

Aus der Doku von CPAN:LWP::UserAgent

perldoc LWP::UserAgent
...
$ua->post( $url, \%form )
$ua->post( $url, \@form )
$ua->post( $url, \%form, $field_name => $value, ... )
$ua->post( $url, $field_name => $value,... Content => \%form )
$ua->post( $url, $field_name => $value,... Content => \@form )
$ua->post( $url, $field_name => $value,... Content => $content )

This method will dispatch a POST request on the given $url, with %form or @form providing the key/value pairs for the fill-in form content. Additional headers and content options are the same as for the get() method.

This method will use the POST() function from HTTP::Request::Common to build the request. See HTTP::Request::Common for a details on how to pass form content and other advanced features.
...


Angewandt auf Deinen Fall, könnte es also sowas sein:
Code (perl): (dl )
$ua->post( $url, { wert => 123456 } );
meine Beiträge: I.d.R. alle Angaben ohne Gewähr und auf Linux abgestimmt!
Die Sprache heisst Perl, nicht PERL. - Bitte Crossposts als solche kenntlich machen!

View full thread LWP und proxy