#340: http.get failing with the error "not in gzip format"
----------------------------------------+-----------------------------------
 Reporter:  bobsteven...@…              |       Owner:  lsansone...@…        
     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/>

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

Reply via email to