Skip to content

vijayrsv/ruby-curl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Ruby Extension For CURL

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •