Questions tagged [curb]

Curb provides Ruby-language bindings for the libcurl, a fully-featured client-side URL transfer library.

Curb provides Ruby-language bindings for the libcurl, a fully-featured client-side URL transfer library. See https://github.com/taf2/curb

125 questions
1
vote
1 answer

Curb doesn't respond

I parse RSS stream with Feedjira. When I used a fetch_and_parse method it sometimes blocked and doesn't respond. The same thing happens with manual curb downloading. I write in a loop: @my_logger.info "--- Before perform ---" easy =…
Michael
  • 548
  • 8
  • 30
1
vote
2 answers

how do i get curb to install on windows?

C:\sites\loltilt2>gem install curb -v '0.8.5' Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing curb: ERROR: Failed to build gem native extension. …
1
vote
1 answer

Ruby Curb not following redirects

I'm using Curb to get various URLs, and if the response is 200, I get what I need. However, if the response is a redirect, Curb doesn't seem to follow the redirects, even though I ask it to - e.g: easy = Curl::Easy.new easy.follow_location =…
Pezholio
  • 2,439
  • 5
  • 27
  • 41
1
vote
1 answer

gem install 'feedzirra' and 'curb' error in Windows 7

Bundle Install Issue on Windows-7 (64-bit). I need to install 'feedzirra' gem. For this, its dependent gem 'curb' is to be installed. So at the time of bundle install, I got this error:- Gem::Installer::ExtensionBuildError: ERROR: Failed to build…
RohitPorwal
  • 1,045
  • 15
  • 23
1
vote
1 answer

How can i specify SSL version in curb

I am interacting with an API that requires SSL3. From the command line I form the request like: curl -ssl3 -H 'Authorization: Bearer XXXX' https://capi-eval.signnow.com/api/user/documentsv2 With curb I have implemented: c =…
Mike Simmons
  • 328
  • 3
  • 14
1
vote
1 answer

Make a HTTP header request with Curb

With curl I can perform a HTTP header request like so: curl -I 'http://www.google.com' How can I perform this procedure with Curb? I don't want to retrieve the body as this would take too much time.
RevMoon
  • 859
  • 1
  • 9
  • 16
1
vote
1 answer

getting the status code of a HTTP redirected page

I'm using curb to test some URLs in Ruby: require 'curb' def test_url() c = Curl::Easy.new("http://www.wikipedia.org/wiki/URL_redirection") do |curl| curl.follow_location= true curl.head = true end c.perform puts "status => " +…
gprasant
  • 15,589
  • 9
  • 43
  • 57
1
vote
2 answers

Rails - Curb SSLCA error? - Curl::Err::SSLCACertificateError

When I update my Rails gems I find this errors (only in production, in development environment working good): Curl::Err::SSLCACertificateError Seems that is an SSL Certificate Authority Error, but why only in production is not working? And what can…
damoiser
  • 6,058
  • 3
  • 40
  • 66
1
vote
5 answers

Trying to make curl requests in ruby

is there a ruby curl library that will allow me to duplicate this request: curl -d ''…
Fred Garbutt
  • 187
  • 2
  • 15
1
vote
1 answer

rails - curb: encoding issue sending request & token with "+"

I have a problem sending request to an external server, when the token has a "+" the other server don't recognize the request. I think it's a problem of encoding (sorry I'm newbie to rails) but I don't know what to do. This is my code req =…
damoiser
  • 6,058
  • 3
  • 40
  • 66
1
vote
1 answer

Curl using ruby

I'm trying to use Curl with SPNEGO negotiate kind of authentication through ruby. I tried several libraries, but seems like httpi has a way to do it through it's curb adapter like this link: https://gist.github.com/3179054#comments I was wondering…
anipendakur
  • 85
  • 10
1
vote
3 answers

How to specify network interface with Ruby's Faraday?

I'm using Faraday which wraps various adapters, including Net::HTTP, Excon, Typhoeus, Patron, and EventMachine. I would like to specify the network interface (e.g. en0 or en1), but I'm not sure how or if it is possible. I'd be open to answers at the…
David J.
  • 31,569
  • 22
  • 122
  • 174
0
votes
1 answer

Ruby Curb (Curl) issue with setting parameters and cookies

I've got a series of rather large arrays of entries that I want to post into a remote Jira instance's custom fields, so I'm trying to do it with Curb under Ruby (as their API doesn't allow it, and under SQL it's a bit of a dangerous munge) I'm open…
Scott
  • 347
  • 5
  • 16
0
votes
1 answer

Ruby/curl link expander method is downloading the full target url

I made a handy little link expander using curl within my ruby (Sintra) app. def curbexpand(link) result = Curl::Easy.new(link) begin result.headers["User-Agent"] = "..." result.verbose = true result.follow_location =…
Colm Troy
  • 1,947
  • 3
  • 22
  • 35
0
votes
2 answers

I can't install Ruby Gem 'curb' on Mac OS Lion

I'm trying to bundle install an application and it keeps getting stuck at the curb gem. Here is the Gemfile: source :rubygems gem 'sinatra', '~>1.0' gem 'yajl-ruby', '~>0.7.8' gem 'mustache', '~>0.11.2' gem 'curb', '~>0.7.8' gem 'coderay',…
steve_gallagher
  • 3,778
  • 8
  • 33
  • 51
1 2 3
8 9