search for: use_ssl

Displaying 20 results from an estimated 35 matches for "use_ssl".

Did you mean: duse_ssl
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 regards -- Posted via http://www.ruby-forum.com/.
2006 Apr 06
2
OpenSSL: SSL_CTX_new:: library has no ciphers
...r post operation using Net::HTTP in SSL mode. I''m on TextDrive, which runs ruby 1.8.2; however, I have the /net folder from ruby 1.8.4 in my /lib to support net/https, which doesn''t appear to be present in 1.8.2. http = Net::HTTP.new "www.beanstream.com", 443 http.use_ssl = true http.start { http.request_get("/scripts/process_transaction?" + @data) {|res| @response_plain = res.body } } When I try to run this code, it craps out at the http.start. I''ve tried several iterations and examples; either OpenSSL fails, or 1.8.2 doesn'...
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 6785 559 | 380 2731 [ facsimile ] -------------- next part ---------...
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 ,
2008 May 03
5
Need some help in reducing my repetions in tests with Mocha
...lly 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 sent. So I end up with expectations like so: it "includes a token in the parameters" do http = mock() http.stubs(:use_ssl=) http.expects(:get).with { |url| url.split("?",2).last =~ /token=#{@token}/ }.returns(good_response) Net::HTTP.stubs(:new).returns(http) @base.query("viewall") end But the problem is, all my expectations basically feature the same lines of code (from http = mock(...
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/
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 {|http| http.request(request) } But when I try to use it on my RoR app I get the following error: OpenSSL::SSL::SSLError (SSL_connect returned=1 er...
2006 May 03
1
nil.strip error While trying to post xml data over https.
...oduces a NoMethodError for nil.strip" require ''net/http'' require ''net/https'' require ''uri'' url = URI.parse(''www.beautifulpixel.com/index.html'') connection = Net::HTTP.new(url.host, 443) connection.use_ssl = true #This is the line that causes an error response = connection.request(Net::HTTP::Post.new(url.path, request_body)) #The error occured while evaluating nil.strip # from c:/ruby/lib/ruby/1.8/net/http.rb:1138:in `initialize_http_header'' # from c:/ruby/lib/ruby/1...
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
2010 Dec 24
0
Getting Google Image search to work within Rails
...ng 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 = "ajax/services/search/images?v=1.0&q=gatsby&key=<key>" path = URI.escape(path) response = http.get(path, {"HTTP_REFERER" => "<my website>", ''User- Agent'' => ''mozilla''}) data = r...
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
2017 Jan 21
2
mail-trends+Dovecot
...ndoe at dom.ain who MUST login as johndoe at dom.ain with a password. 3. His mailbox is in /var/spool/virtual/dom.ain/johndoe/Maildir/ So I try this - using the mail-trends code from [1] root at gw:/scripts/mail-trends # ./main.py --server=localhost --username=johndoe at dom.ain --password=1234 --use_ssl [2017-01-21 22:24:08,552] Initializing {'username': 'johndoe at dom.ain', 'use_ssl': '', 'password': '1234', 'server': 'localhost'} [2017-01-21 22:24:08,552] Connecting [2017-01-21 22:24:08,747] Logging in [2017-01-21 22:24:08,752] Get...
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
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
2006 Jul 18
0
del.icio.us links in the layout - HELP
....basic_auth ''user'', ''pass'' response = http.request(request) response.value response.body end @links = Array.new @descriptions = Array.new @times = Array.new @i = 0 http = Net::HTTP.new(''api.del.icio.us'', 443) http.use_ssl = true http.start do |http| xml = get_authenticated(''/v1/posts/recent?count=10&tag=rpheath'', http) REXML::Document.new(xml).root.get_elements(''post'').each do |post| link = post.attributes[''href''] @links << link...
2009 Oct 01
1
Problem with environment
I''ve got 2 different servers, list of gems,version of ruby are the same, difference only in unit test execution process on one server all works fine but on the other i have such kind of error (whire running unit tests) NoMethodError: undefined method `use_ssl'' for #<Net::HTTP ******net:80 open=false> trying to find difference for last 2 days can anyone point way to solution, i think this is only configuration issue? Thanks in advance. -- Posted via http://www.ruby-forum.com/.