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
URI::Fetch::Response(3) User Contributed Perl Documentation URI::Fetch::Response(3)

URI::Fetch::Response - Feed response for URI::Fetch

    use URI::Fetch;
    my $res = URI::Fetch->fetch('http://example.com/atom.xml')
        or die URI::Fetch->errstr;
    print $res->content;

URI::Fetch::Response encapsulates the response from fetching a feed using URI::Fetch.

The contents of the feed.

The URI of the feed. If the feed was moved, this reflects the new URI; otherwise, it will match the URI that you passed to fetch.

The ETag that was returned in the response, if any.

The Last-Modified date (in seconds since the epoch) that was returned in the response, if any.

The status of the response, which will match one of the following enumerations:
  • URI::Fetch::URI_OK()
  • URI::Fetch::URI_MOVED_PERMANENTLY()
  • URI::Fetch::URI_GONE()
  • URI::Fetch::URI_NOT_MODIFIED()

The HTTP status code from the response.

The HTTP::Response object returned from the fetch.

Wrappers around the "$res->response" methods of the same name, for convenience.

Note: there is one difference from the behaviour of HTTP::Response. If you are using a cache and get a 304 response, but the data is retrieved from the cache, then "is_success" will return true, because "res->content" is usable.

The Content-Type header from the response.

Please see the URI::Fetch manpage for author, copyright, and license information.
2016-07-02 perl v5.32.1

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

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