This module shows:
- buildtime version check
Required features will be missing if libcurl was too old at Net::Curl compilation.
- basic inheritance
Use Net::Curl::* as base for your modules.
- exception handling
Most methods die() with a dualvar exception on error. You can compare them numerically, or display as part of a message.
recv() and send() methods use non-blocking transfer, this may be very annoying in simple scripts. This wrapper implements blocking send() wrapper, and two recv() wrappers called read() and readline().
Sample application using this module could look like this:
#!perl use strict; use warnings; use Curl::Transport; #nopod