Displaying 20 results from an estimated 200 matches similar to: "OpenSSL: SSL_CTX_new:: library has no ciphers"
2006 Jun 13
2
Getting Remote Response via HTTP
I am trying to query USPS to get shipping rates in my Rails app.
I am currently fighting Net:HTTP and so I thought I''d ask for some help.
USPS only accepts GET requests, no POST... So, I have something along the
following lines:
@response_plain = Net::HTTP.get(USPS_SERVER_URL,
"/ShippingAPITest.dll?API=RateV2&XML=#{data}")
''data'' is an XML string we
2006 Jun 06
6
Payment Gem Error
I am learning how to use the payment gem to process credit cards. I
think I have everything up and running correctly but I get this error:
undefined method `use_ssl='' for #<Net::HTTP secure.authorize.net:443
open=false>
Would anyone have an idea what would cause that?
Thanks,
will clark // graphic design
www.willclarkdesigns.com/
will@willclarkdesigns.com
559 | 584
2008 May 03
5
Need some help in reducing my repetions in tests with Mocha
Hi All
I''m writing a gem to interact with the todoist JSON API and I''m using mocha to mock the server responses so I don''t have to have a net connection to test and so I don''t need to actually use my own API key anywhere.
Mostly I am interested in verifying that a correctly formatted URL has been sent, with the appropriate parameters, e.g API key have been
2009 Feb 20
6
Apache configuration
To configure https we need .pem certificate file. it has both
certificate
and private and public keys .
Using this I configured https in apache . It is working nice . My client
says that he send the https request using post method .
Also he says that data in post method will be encrypted .
like this ,
2013 Aug 29
4
Weird behaviour using ssl connection (OpenSSL::SSL::SSLError)
Hi guys
when I execute the piece of code bellow on RoR console it works fine:
url = URI.parse("https://us1.api.mailchimp.com/2.0/helper/ping")
request = Net::HTTP::Post.new(url.path)
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
request.body = "{\"apikey\": \"myapikey\"}"
response = http.start
2008 Jan 13
6
Graceful way to handle execution expired and bad URI errors?
Hello,
I have a program that takes blog urls that our customers enter
into their profiles. In some cases they enter bad feeds (IE html
pages instead of atom or rss), and it throws these two errors:
execution expired and bad URI errors in the view.
I need to find a graceful way to handle both. Preferably, if I could
find a way to throw an error message for the execution expired
2006 May 03
1
nil.strip error While trying to post xml data over https.
I am trying to subit some xml data over https to access an API. My code
so far seems to generate a very non-helpful error in the guts of the
net/http library. This code produces a NoMethodError for nil.strip"
require ''net/http''
require ''net/https''
require ''uri''
url =
2006 Mar 24
8
[OT] Does Net::HTTP support secure connections ?
Hi !
I''m trying to connect to an https URL, but it seems it doesn''t work.
Has anyone successfully connected from Ruby to an HTTPS server ?
Thanks !
--
Fran?ois Beausoleil
http://blog.teksol.info/
2009 Jul 24
1
Modifying ActiveResource classes
I''ve been struggling with an issue with ActiveResource for a bit now:
when a hostname resolves for an ActiveResource request, but there''s no
server on the other end to return information, ActiveResource''s timeout
value doesn''t work. The request just hangs.
After reviewing the ActiveResource code, I''ve realized that this is
because the underlying
2006 Feb 18
3
scoped databases need explanation...
Could someone explain this
http://blog.leetsoft.com/articles/2005/10/31/scoped-databases
in a way that can be understood with an example if possible. Tobi Lutke
has started to explain but it does not make any sense.
"Since rails 0.13.1 we support calling class methods over associations."
what?? give an example.
also
"The Shop object is figured out at the beginning of each
2011 Feb 24
4
OT: Ecommerce hosting
Would appreciate some suggestions for ecommerce hosting. Been using, cough,
cough, godaddy, for about 5 or 6 yrs but in the last year or so, they really
suck. Did the hosting myself for a while prior to going with godaddy but I
don't have time to babysit. Seems godaddy would rather spend millions
advertising during the Super Bowl than put that money to good use.
TIA!!
2010 Aug 24
5
Reading pem file in ruby on rails
hi,
i have a certificate file in pem format. i need to read the pem file.
Need help on how to read the certificate in ruby on rails
Thanks
--
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 post to this group, send email to
2011 Jan 03
4
How to get soap4r to not bother verifying SSL certificate (verify_mode none)?
Using Ruby 1.8.7, Rails 2.3.8. I don''t want it to verify the cert...
This is my backtrace:
OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=SSLv3 read
server certificate B: certificate verify failed):
httpclient (2.1.5.2) lib/httpclient/session.rb:247:in `connect''
httpclient (2.1.5.2) lib/httpclient/session.rb:247:in `ssl_connect''
httpclient
2006 Aug 16
7
ActionWebService: XMLRPC Server Multicall possible?
Hi all,
I have a question concerning ActionWebService XMLRPC servers: Is it
possible to send multicall requests to the Web service? I tried to
use multicall and get the error message:
no such method ''system.multicall'' on API [MyAPI]
In Changeset 2021 there is the following commit message:
add ''system.multicall'' support to XML-RPC. boxcarred methods must
2006 Jan 25
6
Displaying based on hostname/subdomain
Ive tried multiple ideas to get this to work, but keep hitting a dead
end. Has anyone done this before?
I want joe.domain.com to display www.domain.com/profile/joe
Im using lighttpd.
Routes dont have access to the URL string and therefore I cant code in
a conditional. lighttpd rewrite seems to really screw it all up. Is
there a feasible solution?
Thank you,
Joe Noon
2006 Jul 19
3
undefined method `use_ssl='' for #<Net::HTTP
hi all,
#----------------------
client = XMLRPC::Client.new("localhost", path, 443, nil, nil, nil, nil,
true, 30)
#----------------------
when i run it, throw a exception:
undefined method `use_ssl='' for #<Net::HTTP localhost:443 open=false>
my box is centOS, but it''s works on another box,
seems related ruby environment,
any one can give me a hint.
all
2010 Jun 09
12
Foreman -- Reporting
Hello All,
I don''t seem to be able to get reports to display on the foreman
interface. I copied extras/puppet/foreman/files/foreman-report.rb to /
usr/lib/ruby/site_ruby/1.8/puppet/reportsforeman.rb, instead of /usr/
lib/ruby/1.8/puppet/reports/foreman.rb. Config: Centos5.4, Apache/
Passenger, Puppet 0.25.4.
The reports are coming from the clients, because I can see them
in
2006 Jul 13
3
payment gem, server anomolies
so i have the payment gem working perfectly in our app, running locally
on my system.
uploaded a copy of the app file structure to our server (a rimu rhel3),
but now the payment gem is unresponsive. it throws exceptions with no
error message.
i''m looking for a suggestion how to debug this.
running updated gems and versions on both systems. they seem identical,
unless i''m
2011 Aug 19
1
How to post a file via HTTP as multipart/form-data to Facebook?
I would like to post a new photo to a user using `Net::HTTP::multipart`
from a Heroku application to Facebook.
I have the following JSON object:
{"message"=>"My message",
"image"=>#<ActionDispatch::Http::UploadedFile:0x00000004242490
@original_filename="neEZYMAnBI.jpg",
@content_type="application/octet-stream",
2010 Dec 24
0
Getting Google Image search to work within Rails
Hi,
I''m getting this strange behavior when I try to run search for
images using Google Images API. I suspect it''s because of my code and
not the API itself, here''s what I wrote:
uri = URI.parse("https://ajax.googleapis.com/")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
path =