ip2k / google-api-ruby-client

Automatically exported from code.google.com/p/google-api-ruby-client
Apache License 2.0
0 stars 0 forks source link

Host parameter does not support a port number override #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Google::APIClient.new("host" => "localhost:4567")

What is the expected output? What do you see instead?

I expected the library to connect to localhost at port 4567.

What version of the product are you using? On what operating system?

ruby 1.9.3p0
Git commit 04ec835ca132cd04bba58587f9c17e5e4d70a3ab
Ubuntu 11.04

Please provide any additional information below.

The URL is encoded thereby causing DNS lookup fails.
  https://localhost%3A4567/discovery/v1/apis

This is small issue.

Original issue reported on code.google.com by boume...@gmail.com on 3 Jan 2012 at 3:22

GoogleCodeExporter commented 9 years ago
Nice catch.

Original comment by bobaman@google.com on 4 Jan 2012 at 6:32

GoogleCodeExporter commented 9 years ago

Original comment by bobaman@google.com on 10 Jan 2012 at 7:42

GoogleCodeExporter commented 9 years ago
This can now be resolved by setting client.port = '4567' but HTTPS is still 
assumed. Not sure if we'd really want unencrypted communication happening.

Original comment by bobaman@google.com on 27 Feb 2012 at 11:35