HTTP-Simple
view release on metacpan or search on metacpan
postfile('https://example.com', '/path/to/file.png');
DESCRIPTION
This module is a wrapper of HTTP::Tiny that provides simplified
functions for performing HTTP requests in a similar manner to
LWP::Simple, but with slightly more useful error handling. For full
control of the request process and response handling, use HTTP::Tiny
directly.
IO::Socket::SSL is required for HTTPS requests with HTTP::Tiny.
Request methods that return the body content of the response will
return a byte string suitable for directly printing, but that may need
to be decoded for text operations.
The HTTP::Tiny object used by these functions to make requests can be
accessed as $HTTP::Simple::UA (for example, to configure the timeout,
or replace it with a compatible object like HTTP::Tinyish).
The JSON encoder used by the JSON functions can be accessed as
lib/HTTP/Simple.pm view on Meta::CPAN
postfile('https://example.com', '/path/to/file.png');
=head1 DESCRIPTION
This module is a wrapper of L<HTTP::Tiny> that provides simplified functions
for performing HTTP requests in a similar manner to L<LWP::Simple>, but with
slightly more useful error handling. For full control of the request process
and response handling, use L<HTTP::Tiny> directly.
L<IO::Socket::SSL> is required for HTTPS requests with L<HTTP::Tiny>.
Request methods that return the body content of the response will return a byte
string suitable for directly printing, but that may need to be
L<decoded|Encode/decode> for text operations.
The L<HTTP::Tiny> object used by these functions to make requests can be
accessed as C<$HTTP::Simple::UA> (for example, to configure the timeout, or
replace it with a compatible object like L<HTTP::Tinyish>).
The JSON encoder used by the JSON functions can be accessed as
( run in 0.514 second using v1.01-cache-2.11-cpan-fd5d4e115d8 )