NAME
Web::MREST::CLI::UserAgent - HTTP user agent for command-line client
SYNOPSIS
use Web::MREST::CLI::UserAgent qw( send_req );
my $status = send_req( 'GET', 'bugreport' );
EXPORTS
PACKAGE VARIABLES
FUNCTIONS
normalize_filespec
Given a filename (path) which might be relative or absolute, return an absolute version. If the path was relative, it will be anchored to the home directory of the user we are running as.
init_ua
Initialize the LWP::UserAgent singleton object.
cookie_jar
Return the cookie_jar associated with our user agent.
send_req
Send a request to the server, get the response, convert it from JSON, and return it to caller. Die on unexpected errors.