Giter Club home page Giter Club logo

Comments (5)

mjdavies avatar mjdavies commented on August 22, 2024

I'm drilling down, and I've got httpclient to work on it's own as I'd expect, here's the code

require 'httpclient'

client = HTTPClient.new
client.ssl_config.set_trust_ca('certificate off the server')
# set_client_cert_file(cert_file, key_file)
# client.ssl_config.set_client_cert_file('certificate-privateKey.pem', 'certificate-privateKey.pem')

url = "https://doodaa"
resp = client.get(url)
puts resp.content
puts resp.status

If I alter that certificate, or use another one, it fails, as it should.

How to represent that code in savon is the next question.

I'm going to remove curb and go with httpclient from now on, at least I know that works in this instance

from httpi.

grosser avatar grosser commented on August 22, 2024

we had some strange problems with curb/httpi, have you tried another adapter ?

from httpi.

mjdavies avatar mjdavies commented on August 22, 2024

I had to rewrite 2 lines in the httpi gem to get it to work with httpclient or curb. They may have already brought these changes back into the main httpi gem by now, I'm not keeping tabs on it, get it to work, then get onto the next thing :-)

https://github.com/uniglam/httpi

from httpi.

mjdavies avatar mjdavies commented on August 22, 2024

woops, didn't mean to close it, not sure it is closed

from httpi.

rubiii avatar rubiii commented on August 22, 2024

released v0.9.6 which should fix this issue.

from httpi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.