ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ruby-talk
ruby-talk
Re: Download resume with NET::HTTP
by Marcelo other posts by this author
May 9 2008 8:04AM messages near this date
Download resume with NET::HTTP | Re: Download resume with NET::HTTP
On Fri, May 9, 2008 at 8:18 AM, Alex Dj <djioev@[...].com>  wrote:

>          Net::HTTP.start("server.com") { |http|
>             response = http.request_get('/some/path') {|response|

create your request by hand:

 req = Net::HTTP::Get.new(path)
 req.range = ...

In HTTP 1.1 range has the form "[lower]-[upper]", so "[lower]-" is
valid.  I'm not sure what range= takes, you get to try it :-)

Marcelo
Thread:
Alex Dj
Marcelo
Alex Dj

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved