Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8692601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:20:45+00:00 2026-06-13T00:20:45+00:00

Is there a gem or library for HTTPS Requests in Ruby? What is it

  • 0

Is there a gem or library for HTTPS Requests in Ruby? What is it called and can you provide some example usage?

What I am trying to do is open a page, parse some text from it, and then output it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T00:20:46+00:00Added an answer on June 13, 2026 at 12:20 am

    SSL Request with Ruby Standard Library

    require 'net/http'
    require 'uri'
    Net::HTTP.get URI('https://encrypted.google.com')
    

    Net::HTTP in Ruby (>= 2.0.0) performs SSL verification by default if you pass a URI object that has a "https" URL to it. See https://github.com/ruby/ruby/blob/778bbac8ac2ae50f0987c4888f7158296ee5bbdd/lib/net/http.rb#L481

    You may verify this by performing a get request on a domain with an expired certificate.

    uri = URI('https://expired.badssl.com/')
    Net::HTTP.get(uri)
    # OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed
    

    SSL Request with Ruby HTTP gems

    If you wish to use an alternative, you may use the following gems that also performs SSL verification by default:

    1. Excon

    Excon is a pure Ruby HTTP implementation.

    require 'excon'
    Excon.get 'https://encrypted.google.com'
    
    1. Curb

    Curb is a HTTP client that uses libcurl under the hood.

    require 'curl'
    Curl.get 'https://encrypted.google.com'
    
    1. http.rb

    HTTP or http.rb is a pure Ruby HTTP implementation but uses http_parser.rb to parse HTTP requests and responses. Since http_parser.rb uses native extensions, it claims to be one of the fastest HTTP client library. But as always, take benchmarks with a grain of salt.

    require 'http'
    HTTP.get 'https://encrypted.google.com'
    
    1. HTTPClient

    HTTPClient is another pure Ruby implementation.

    require 'httpclient'
    HTTPClient.get 'https://encrypted.google.com'
    

    What’s listed here are HTTP libraries and not HTTP wrappers. Wrapper gems like HTTParty and Faraday either wrap around a particular HTTP implementation or use adapters to provide a unified HTTP interface. You may check out this Comparison matrix of Ruby HTTP client features. It compares the features of every single HTTP client library out there. But do note that the information isn’t updated since 2012.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a gem or a library to get ruby 1.9 methods like [1,
Is there a gem in Ruby which can write to an Excel file, with
Is there a Ruby gem which can be used to create a Google Slideshow
Hey there, trying to install a ruby gem but I keep getting the following
Is there a gem for threadpooling anyone can recommend?
Is there any ruby gem/ rails plugin available for parsing the resume and importing
Is there a ruby gem or such for MySQL connection pooling that isn't part
Is there a ruby gem that will format dates relative to the current time?
Is there a definitive gem for the YouTube API? I'm trying to use youtube_g,
Is there a way to check if some gem is currently installed, via the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.