[MacRuby-devel] [MacRuby] #340: http.get failing with the error "wrong chunk size line: (Net::HTTPBadResponse)" (was: http.get failing with the error "not in gzip format")

MacRuby ruby-noreply at macosforge.org
Mon Mar 29 18:58:27 PDT 2010


#340: http.get failing with the error "wrong chunk size line:
(Net::HTTPBadResponse)"
----------------------------------------+-----------------------------------
 Reporter:  bobstevenson@…              |       Owner:  lsansonetti@…        
     Type:  defect                      |      Status:  new                  
 Priority:  blocker                     |   Milestone:                       
Component:  MacRuby                     |    Keywords:  http get             
----------------------------------------+-----------------------------------
Changes (by martinlagardette@…):

  * milestone:  MacRuby 0.5 =>


Old description:

> http.get is causing a error that says
> "not in gzip format"
>
> 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|
>     response = http.get("/k/ident/apisession?token=#{token}")
> end

New description:

 http.get is causing a error that says
 "not in gzip format"

 {{{
 #!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|
     response = http.get("/k/ident/apisession?token=#{token}")
 end
 }}}

--

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/340#comment:1>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list