where scheme can be one of the: http, socks (socks5), socks5, socks4.
proxy_auth => [user, password]
=item max_size
The size limit for response content, bytes.
HTTP::Curl - will return the result partially.
When max_size options will be triggered, 'client-aborted' header will added with 'max_size' value.
=item max_redirect
The limit of how many times it will obey redirection responses in a given request cycle.
By default, the value is 7.
=item body
Data for POST method.
String or CODE ref to return strings (return undef is end of body data).
=item method
When method parameter is "POST", the POST request is used with body parameter on data and 'Content-Type' header is added with 'application/x-www-form-urlencoded' value.
=item verbose
verbose => 1
=back
=head3 finish callback function
my $cb = sub {
my ($is_success, $body, $headers, $redirects) = @_;
...
};
where:
=over
=item is_success
It is true, when HTTP code is 2XX.
=item body
HTML body. When on_header callback function is defined, then body is undef.
=item headers
Ref on HASH of HTTP headers (lowercase) and others info: Status, Reason, URL
=item redirects
Previous headers from last to first
=back
=head3 on_header callback function
When specified, this callback will be called after getting all headers.
$opt{on_header} = sub {
my ($is_success, $headers, $redirects) = @_;
...
};
=head3 on_body callback function
When specified, this callback will be called on each chunk.
$opt{on_body} = sub {
my ($body) = @_; # body chunk
...
};
=head1 NOTES
Turn off the persistent options to download pages of many sites.
Use libcurl with "Asynchronous DNS resolution via c-ares".
=head1 AUTHOR
Nick Kostyria <kni@cpan.org>
=head1 COPYRIGHT AND LICENSE
Copyright (C) 2013 by Nick Kostyria
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.14.2 or,
at your option, any later version of Perl 5 you may have available.
=head1 SEE ALSO
L<Net::Curl>
L<Net::Curl::Multi::EV>
L<Net::Any>
=cut
Keyboard Shortcuts
Global
s
Focus search bar
?
Bring up this help dialog
GitHub
gp
Go to pull requests
gi
go to github issues (only if github is preferred repository)