Created
September 21, 2011 16:32
-
-
Save eveevans/1232560 to your computer and use it in GitHub Desktop.
http headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'net/http' | |
url = URI.parse('http://laurel.datsi.fi.upm.es/index.php') | |
req = Net::HTTP::Get.new(url.path) | |
req.add_field 'Range', 'bytes=714-732' | |
res = Net::HTTP.start(url.host, url.port) {|http| | |
http.request(req) | |
} | |
puts res.body |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment