FWS::V2::Net - Framework Sites version 2 network access methods
Version 1.13091122
use FWS::V2; my $fws = FWS::V2->new(); my $responseRef = $fws->HTTPRequest(url=>'http://www.thiswebsite.com');
FWS version 2 core network methods
Post HTTP or HTTPS and return the result to a hash reference containing the results plus the parameters provided.
my $responseRef = $fws->HTTPRequest( url => 'http://www.cpan.org'# only required parameter type => 'get' # default is get [get|post] user => 'theUser' # if needed for auth password => 'thePass' # if needed for auth noRedirect => 1 # do not follow redirects (defaults to 0) timeout => '30' # fail if 30 seconds go by expire => 30 # cache this for 30 minutes # and return cache till it expires ip =>'1.2.3.4' # show that I am from this ip ); print $responseRef->{url} . "\n"; # what was passed to HTTPRequest print $responseRef->{success} . "\n"; # will be a 1 or a 0 print $responseRef->{content} . "\n"; # the content returned print $responseRef->{status} . "\n"; # the status returned
Send an email: Documentation needed.
Nate Lewis, <nlewis at gnetworks.com>
<nlewis at gnetworks.com>
Please report any bugs or feature requests to bug-fws-v2 at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=FWS-V2. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-fws-v2 at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc FWS::V2::Net
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=FWS-V2
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/FWS-V2
CPAN Ratings
http://cpanratings.perl.org/d/FWS-V2
Search CPAN
http://search.cpan.org/dist/FWS-V2/
Copyright 2013 Nate Lewis.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install FWS::V2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FWS::V2
CPAN shell
perl -MCPAN -e shell install FWS::V2
For more information on module installation, please visit the detailed CPAN module installation guide.