I'm trying to change this request to a HTTP PUT request, any idea how ?
my $request = LWP::UserAgent->new;
my $response =
$request->get($url, "apikey", $apiKey, "requestDate", $requestDate);
I'm trying to change this request to a HTTP PUT request, any idea how ?
my $request = LWP::UserAgent->new;
my $response =
$request->get($url, "apikey", $apiKey, "requestDate", $requestDate);
PUT is HTTP::Request::Common. You can build the request first and pass it into user agent.
You should use HTTP::Request:
As of 6.04,
LWP::UserAgent
has aput
helper, so you can now do: