Project

ruby-curl

0.0
Low commit activity in last 3 years
No release in over a year
True Ruby binding for cURL.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.15
~> 10.0

Runtime

~> 3.0, >= 3.0.8
 Project Readme

Gem Version

Introduction

Ruby-curl aims to be a true libcurl binding for Ruby. Currently, ruby-curl offers full support for the HTTP protocol over libcurl’s easy interface. Just like libcurl, when using ruby-curl you init your easy-session and get a handle, which you use as input to the following interface functions you use.

Requirements

Ruby 2.7 or higher

Libcurl 7.28.0 or higher

Installation

Bundler:

Gem ‘ruby-curl’

Manual:

Gem install ruby-curl

Usage:

require 'ruby-curl'

curl = Curl::Easy.new
curl.setopt(Curl::Opt::URL, "https://example.com")

res = curl.perform
# <!doctype html>...

res
# => 0 # CURLE_OK

curl.cleanup