GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  WWW::SHORTEN::USERAGENT (3)

.ds Aq ’

NAME

WWW::Shorten::UserAgent - LWP::UserAgent subclass for WWW::Shorten modules.

CONTENTS

SYNOPSIS



  use strict;
  use warnings;
  use WWW::Shorten::UserAgent;
  use Try::Tiny qw(try catch);

  my $ua = WWW::Shorten::UserAgent->new;

  my $resp = try {
    $ua->get($url);
  }
  catch {
    warn "Uh oh: $_";
    return undef;
  };



DESCRIPTION

Subclass of LWP::UserAgent which works the same way as the superclass except that it throws an exception if the get or post method returns an error.

See LWP::UserAgent for the full documentation.

METHODS

    get

Makes an HTTP GET request and throws an exception on error.

    post

Makes an HTTP POST request and throws an exception on error.

AUTHOR

Dave Cross <dave@mag-sol.com>

LICENSE AND COPYRIGHT

Copyright (c) Magnum Solutions Ltd., 2012. All rights reserved.

This module is free software. You can redistribute it and/or modify it under the terms of the Artistic License 2.0.

This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.

SEE ALSO

WWW::Shorten
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 WWW::SHORTEN::USERAGENT (3) 2016-03-25

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.