#340: http.get failing with the error "wrong chunk size line:
(Net::HTTPBadResponse)"
----------------------------------------+-----------------------------------
Reporter: bobsteven...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords: http get
----------------------------------------+-----------------------------------
Changes (by martinlagarde...@…):
* 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/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel