#340: http.get failing with the error "wrong chunk size line:
(Net::HTTPBadResponse)"
----------------------------------------+-----------------------------------
Reporter: bobsteven...@… | Owner: lsansone...@…
Type: defect | Status: closed
Priority: blocker | Milestone: MacRuby 0.7
Component: MacRuby | Resolution: fixed
Keywords: http get |
----------------------------------------+-----------------------------------
Changes (by martinlagarde...@…):
* 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/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel