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:

Mar Adentro | -2004-

One of the most striking aspects of "Mar Adentro" is its portrayal of disability. The film avoids sentimentalism and stereotypes, instead opting for a nuanced and realistic representation of Ramón's experiences. Javier Bardem's performance as Ramón Sampedro is particularly noteworthy, conveying the complexity and depth of a man who refuses to be defined by his disability.

The film also explores Ramón's relationships with two women, Julia (played by Cecilia Roth) and Coralia (played by Lola Dueñas), who become key figures in his life. Julia, a romantic and idealistic woman, helps Ramón to see that life is worth living, despite his physical limitations. Coralia, on the other hand, provides Ramón with a sense of stability and companionship. mar adentro -2004-

In conclusion, "Mar Adentro" is a powerful and moving film that tells a remarkable story of courage and resilience. Through Ramón Sampedro's story, the film sheds light on the challenges faced by people with disabilities and the importance of autonomy and dignity. The movie is a testament to the human spirit, showing that, with determination and support, it is possible to overcome even the most daunting obstacles. One of the most striking aspects of "Mar

Through Ramón's story, the film sheds light on the difficulties faced by people with disabilities in Spain during the 1970s and 1980s. The movie highlights the bureaucracy and lack of resources that often hindered people with disabilities from living independently. Ramón's struggle for autonomy is met with resistance from the medical establishment and his family, who are torn between their desire to help him and their own fears and limitations. The film also explores Ramón's relationships with two

"Mar Adentro" (2004), directed by Icíar Bollaín, is a biographical drama that tells the remarkable story of Ramón Sampedro, a Spanish quadriplegic who fought for his right to live with dignity and freedom. The film, based on the book "Mar Adentro" by Ramón Sampedro, explores themes of disability, autonomy, and the human spirit.

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.