[MacRuby-devel] [MacRuby] #340: http.get failing with the error "wrong chunk size line: (Net::HTTPBadResponse)"
MacRuby
ruby-noreply at macosforge.org
Thu Jun 17 13:16:42 PDT 2010
#340: http.get failing with the error "wrong chunk size line:
(Net::HTTPBadResponse)"
----------------------------------------+-----------------------------------
Reporter: bobstevenson@… | Owner: lsansonetti@…
Type: defect | Status: closed
Priority: blocker | Milestone: MacRuby 0.7
Component: MacRuby | Resolution: fixed
Keywords: http get |
----------------------------------------+-----------------------------------
Changes (by martinlagardette@…):
* status: new => closed
* resolution: => fixed
* milestone: => MacRuby 0.7
Comment:
Fixed with r4234
{{{
#!ruby
require 'net/http'
require 'rexml/document'
require 'uri'
token ='mCHpMz2L_a_OrEkz3FSiDg'
hostname = 'api.kayak.com'
port = 80
Net::HTTP.start(hostname, port) do |http|
p http
response = http.get("/k/ident/apisession?token=#{token}")
p response
end
}}}
{{{
$> macruby t.rb
#<Net::HTTP api.kayak.com:80 open=true>
#<Net::HTTPOK 200 OK readbody=true>
$>
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/340#comment:2>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list