[MacRuby-devel] [MacRuby] #340: http.get failing with the error "not in gzip format"
MacRuby
ruby-noreply at macosforge.org
Fri Sep 18 06:49:50 PDT 2009
#340: http.get failing with the error "not in gzip format"
----------------------------------------+-----------------------------------
Reporter: bobstevenson@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone: MacRuby 0.5
Component: MacRuby | Keywords: http get
----------------------------------------+-----------------------------------
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
--
Ticket URL: <http://www.macruby.org/trac/ticket/340>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list