Hi Jordon,

thank you very much for your response!

I'm assuming that my OpenSSL is working fine and my Ruby is already 
compiled with SSL headers, since when I execute using Rails console it 
works fine.

Your code doesn't work because this endpoint don't allow http 
connection, only https.
If I include the .use_ssl = true in your code, I get the same problem.

When I run this app using WEBrick it also works fine.

This problem only happens on Apache+PhusionPassenger...

Best regards

Paulo

Jordon Bedwell wrote in post #1120092:
> On Fri, Aug 30, 2013 at 8:40 AM, Paulo Castro <[email protected]>
> wrote:
>> I mean, when I execute the code bellow from web browser..
>> I'm using apache+phusionpassenger
>>
>> Please, anyone has any idea? I couldn't find anything to help yet!!
>
> First make sure your OpenSSL is working fine, then make sure you've
> the SSL headers installed and recompile Ruby.  Also, see if the
> simplest form of connection works:
>
> require "net/https"
> Net::HTTP.get(URI.parse("https://us1.api.mailchimp.com/2.0/helper/ping";))

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/75ff93a231a4825e709e0809f96027a5%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to