Thread Übersetzung gesucht für PHP Funktion file_get_contents (21 answers)
Opened by Perlentaucher at 2014-08-04 15:45

Gast Gast
 2014-10-24 15:43
#177951 #177951
Laut Doku LWP ist put() wie folgt zu verwenden: put(URL,DATA)
http://search.cpan.org/~mschilli/libwww-perl-6.08/lib/LWP/UserAgent.pm#ATTRIBUTES
$ua->put( $url, \%form )
$ua->put( $url, \@form )
$ua->put( $url, \%form, $field_name => $value, ... )
$ua->put( $url, $field_name => $value,... Content => \%form )
$ua->put( $url, $field_name => $value,... Content => \@form )
$ua->put( $url, $field_name => $value,... Content => $content )

This method will dispatch a PUT 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 PUT() 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.


Code: (dl )
my $response = $ua->put( 'http://' . $km200_gateway_host . $REST_URL, $data); 

Last edited: 2014-10-24 15:50:57 +0200 (CEST)

View full thread Übersetzung gesucht für PHP Funktion file_get_contents