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:

Call Of Duty Black Ops 2 Wii U Wup Installable Review

As we look back on the Wii U's lifespan, it's clear that the console's innovative approach to game distribution and installation helped pave the way for future console generations. The WUP Installable format may seem like a relic of the past, but it remains an important part of gaming history, and a reminder of the innovative solutions that game developers and console manufacturers can bring to the table.

The WUP Installable version of Call of Duty: Black Ops 2 on Wii U may seem like a minor detail, but it represents an important aspect of the game's distribution and installation process. For Wii U owners who purchased the game, the WUP Installable format provided a convenient way to download and install one of the most popular games of 2012. call of duty black ops 2 wii u wup installable

When a game is listed as "WUP Installable" on the Nintendo eShop, it means that the game is distributed as a WUP file that can be downloaded and installed directly onto the Wii U console. This process is similar to how digital games are typically purchased and downloaded on other consoles, such as the PlayStation 4 or Xbox One. As we look back on the Wii U's

For Wii U owners, WUP Installable provides a convenient way to purchase and download games directly to their console, eliminating the need for physical game media. Additionally, WUP Installable games can be easily updated and patched, ensuring that players have access to the latest game content and fixes. For Wii U owners who purchased the game,

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.