[MacRuby-devel] [MacRuby] #750: Net::HTTP.get fails
MacRuby
ruby-noreply at macosforge.org
Thu Jun 17 06:57:18 PDT 2010
#750: Net::HTTP.get fails
-----------------------------------+----------------------------------------
Reporter: joecannatti@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone: MacRuby 0.6
Component: MacRuby | Keywords: net http
-----------------------------------+----------------------------------------
Comment(by watson1978@…):
I think that your test code works with r4233.
But if WebSite's encoding do not use a UTF-8, I think that Net::HTTP.get
fails.
A encoding of "www.google.co.jp" use a Shift_JIS when I accessed it with
Net::HTTP.
$ cat test_http.rb
{{{
# -*- coding: utf-8 -*-
require 'net/http'
body = Net::HTTP.get('www.google.co.jp', '/')
puts body
}}}
{{{
$ macruby test_http.rb
wrong chunk size line: (Net::HTTPBadResponse)
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/750#comment:1>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list