Agent;
use HTTP::Request;
use HTTP::Headers;
use vars qw(
$AUTOLOAD
$VERSION
$JSON_ENCODE
$JSON_DECODE
$DEFAULT_RETRY_MAX
$DEFAULT_RETRY_INTERVAL
);
$VERSION = sprintf "%d.%03
sub serialize_type {
return shift->{'serialize_type'} ||=
eval { require JSON } ? 'json'
: eval { require YAML::Syck } ? 'yaml'
: eval { require YAML }
a::URIEncode } ? 'uri'
: die "Can't find a module that can encode and decode (need one of JSON, YAML::Syck, YAML, Data::URIEncode, XML::Simple)";
}
###----------------------------------------