0.9.x+
#
package FreeMED::Relay;
use LWP::UserAgent;
use HTTP::Request::Common;
use JSON; # objToJson(), jsonToObj()
use HTTP::Cookies;
use vars qw{ $VERSION };
BEGIN {
$VERSION = '0.2.2';
}
su
= {};
bless $self, $class;
$self->{'debug'} = $debug;
$self->_init();
$JSON::UnMapping = 1;
$JSON::QuotApos = 1;
$JSON::BareKey = 1;
return $self;
}
sub set_credentials {
my $self = shift;
ame'} ];
} else {
my $json = objToJson( $param );
print "param = $param, count = $count, json = $json\n" if $self->{'debug'};
$p{"param${count}"} = ($json ? $json : $param );
$count++;