URI::Fetch is a smart client for fetching HTTP pages, notably syndication feeds (RSS, Atom, and others), in an intelligent, bandwidth- and time-saving way. That means:
If you have Compress::Zlib installed, URI::Fetch will automatically try to download a compressed version of the content, saving bandwidth (and time).
If you use a local cache (see the Cache parameter to fetch), URI::Fetch will keep track of the Last-Modified and ETag headers from the server, allowing you to only download pages that have been modified since the last time you checked.
Certain HTTP error codes are special, particularly when fetching syndication feeds, and well-written clients should pay special attention to them. URI::Fetch can only do so much for you in this regard, but it gives you the tools to be a well-written client.
The response from fetch gives you the raw HTTP response code, along with special handling of 4 codes:
Signals that the content of a page/feed was retrieved successfully.
Signals that a page/feed has moved permanently, and that your database of feeds should be updated to reflect the new URI.
Signals that a page/feed has not changed since it was last fetched.
Signals that a page/feed is gone and will never be coming back, so you should stop trying to fetch it.
Package Version | Update ID | Released | Package Hub Version | Platforms | Subpackages |
---|---|---|---|---|---|
0.15-bp156.3.1 info | GA Release | 2023-07-22 | 15 SP6 |
|
|
0.15-bp155.2.9 info | GA Release | 2023-05-17 | 15 SP5 |
|
|
0.15-bp154.1.13 info | GA Release | 2022-05-09 | 15 SP4 |
|
|
0.13-bp153.1.12 info | GA Release | 2021-03-06 | 15 SP3 |
|
|
0.13-bp152.1.8 info | GA Release | 2020-04-16 | 15 SP2 |
|
|