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:

Download Emerald Lake Pc Game 2020 <FREE ◆>

is an indie horror game released on July 27, 2020 . Developed and published by Jack Twin , the game is currently available for download on the Steam Store . Game Overview

: The camp was shut down years ago following a series of mysterious and strange events. Download Emerald Lake PC Game 2020

: Do not confuse this title with the 2021 game Lake , which is a relaxed mail-delivery simulator, or the Emerald Lake hiking trail located in Rocky Mountain National Park. Emerald Lake on Steam is an indie horror game released on July 27, 2020

: The game has a "Mostly Negative" rating on Steam, with players often citing technical bugs or difficulty with specific puzzle mechanics. : Do not confuse this title with the

To run Emerald Lake on PC, your system should meet the following requirements: Minimum Requirement Recommended Windows Vista / 7 / 8 / 10 Windows 10 Processor Dual core 2.4 GHz Intel Core i5 Memory Graphics 1 GB DX9 Compliant 2 GB DX9 Compliant Storage 1 GB available space 2 GB available space Availability and Pricing Platform : Exclusively available for PC via Steam . Price : Listed at $3.99 .

: Players take on the role of Michael, who travels to the abandoned "Emerald Lake" children's camp to find his missing brother, Peter.

: It is a first-person exploration horror game featuring environmental puzzles, such as finding four-digit refrigerator codes to progress. Technical Specifications

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.