Ticket #340 (closed defect: fixed)
http.get failing with the error "wrong chunk size line: (Net::HTTPBadResponse)"
| Reported by: | bobstevenson@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | blocker | Milestone: | MacRuby 0.7 |
| Component: | MacRuby | Keywords: | http get |
| Cc: |
Description (last modified by martinlagardette@…) (diff)
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
Change History
Note: See
TracTickets for help on using
tickets.

