#750: Net::HTTP.get fails
-----------------------------------+----------------------------------------
 Reporter:  joecanna...@…          |       Owner:  lsansone...@…        
     Type:  defect                 |      Status:  new                  
 Priority:  blocker                |   Milestone:  MacRuby 0.6          
Component:  MacRuby                |    Keywords:  net http             
-----------------------------------+----------------------------------------

Comment(by watson1...@…):

 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/>

_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to