Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Perl

Idiom #183 Make HTTP PUT request

Make a HTTP request with method PUT to the URL u

use HTTP::Tiny qw();
my $response = HTTP::Tiny->new->put($u, {content => $http_request_body});
using System.Net.Http;
new HttpClient().PutAsync(u, content);

New implementation...
< >
programming-idioms.org