Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

How to download a range of bytes?

by Zeokat (Novice)
on Dec 26, 2007 at 22:56 UTC ( [id://659125]=perlquestion: print w/replies, xml ) Need Help??

Zeokat has asked for the wisdom of the Perl Monks concerning the following question:

Goodlife Cat Food Where To Buy -

: Known for using real chicken as the #1 ingredient to support lean muscle, paired with farm-grown veggies. Goodlife Indoor Recipe

: Similar to Instacart, DoorDash often has larger 16 lb bags available for same-day delivery depending on your zip code. goodlife cat food where to buy

Finding your cat's favorite (formerly The Goodlife Recipe ) kibble has become quite the treasure hunt. While the brand was technically discontinued by Mars, Inc. in 2018, you can still find remaining stock through specific online delivery services and local retailers. Where to Buy Goodlife Cat Food If you are looking for the Real Chicken & Brown Rice Recipe Go to product viewer dialog for this item. : Known for using real chicken as the

: Formulated with natural fiber to help with hairball control and is lower in fat to help maintain a healthy weight for less active indoor cats. A New Alternative: Goodlands While the brand was technically discontinued by Mars, Inc

: This is currently the most reliable way to find it. They list various sizes, including 3.5 lb and 7 lb bags, from retailers like Wegmans and other local grocers.

If you can’t find Goodlife, many pet owners have transitioned to , a newer brand with a similar "natural" focus. It is widely available at Walmart and Amazon . Goodlands features 100% traceable ingredients and recipes like Cage-Free Chicken & Vegetable . Goodlife Real Chicken & Brown Rice Recipe Dry Cat Food

: While often listed as "discontinued" here, it is worth checking Chewy for occasional restocks or to read reviews on potential alternatives. Key Product Details Goodlife Adult Cat Real Chicken & Brown Rice

Replies are listed 'Best First'.
Re: How to download a range of bytes?
by eserte (Deacon) on Dec 26, 2007 at 23:27 UTC
    This seems to work:
    #!/usr/bin/perl -w use strict; use LWP::UserAgent; my $ua = LWP::UserAgent->new; my $url = 'http://localhost/...'; $ua->default_headers->push_header(Range => "bytes=1000-2000"); my $response = $ua->get($url); my $content = $response->content(); warn length($content); warn $content;
    To get the current content length of the object, you can do a HEAD before and look at the content-length header.
      The code works verrrrrrry good eserte. Big thanks. But new question arrive to my head, are there any way to know if the server have the abbility of "Accept-Ranges: bytes" ?? Thanks in advance.
        Try fetching with HEAD instead of GET to view the Accept* headers without getting the content itself

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://659125]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (2)
As of 2026-03-08 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.