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
4
votes
1 answer

An error occurred while installing curb (0.8.5), and Bundler cannot continue

I've setup a rails app but when I do bundle install I get an error: Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /home/kelvin/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb checking for curl-config... no checking for main() in…
Mutuma
  • 1,943
  • 3
  • 24
  • 33
4
votes
2 answers

How to exit from async call when url timeout with ruby/curb

I am using Ruby curb to call multiple urls at once, e.g. require 'rubygems' require 'curb' easy_options = {:follow_location => true} multi_options = {:pipeline =>…
Howard
  • 19,215
  • 35
  • 112
  • 184
4
votes
2 answers

ElasticSearch Bulk Delete by id

I'm attempting to do a bulk delete by ids and it appears to be not working. When I run my test suite and try via the Rails console, it seems to work OK. However, I'm running into occurrences where there are documents that simply don't get removed.…
Jey Balachandran
  • 3,585
  • 5
  • 27
  • 36
4
votes
2 answers

Setting up Curb in windows

I'm trying to use feedzirra with Rails 3 On Windows 7, but have been having real issues getting Curl and Curb installed. I found this question Install Ruby Curb gem in windows XP which enabled me to get the gem installed successfully, but now when…
Ben
  • 1,767
  • 16
  • 32
3
votes
0 answers

curb gem installation: bundle install fails, but normal gem install works

solved: the openvz container did not have enough memory assigned to it. I could need some help: I want to install the curb gem through bundler. My config (please request more details if needed): ruby 1.8.7 (2010-08-16 patchlevel 302)…
seven
  • 31
  • 3
3
votes
0 answers

How to resolve Curl::Err::ConnectionFailedError calling http_get method of ruby curb gem?

when I call http_get method of curb gem like Curl::Easy.http_get(url) I am getting an exception error='Curl::Err::ConnectionFailedError: Couldn't connect to server' duration=7805.63 view=0.00 db=1.33 remote_ip=127.0.0.1 …
punitcse
  • 717
  • 7
  • 27
3
votes
3 answers

Having Issues with Curb gem on Mac Snow Leopard

This has consumed hours of my time. in the console i run: require 'curb' i get the error: LoadError: dlopen(/usr/local/lib/ruby/gems/1.8/gems/taf2-curb-0.5.4.0/lib/curb_core.bundle, 9): no suitable image found. Did…
forgotpw1
  • 151
  • 2
  • 7
3
votes
2 answers

The specified module could not be found curb

When i try to run the project using rails server, i get the following errors C:\Workspace\combomeal>rails server C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11/lib/active_supp ort/dependencies.rb:251:in `require': 126: The…
Patrick
  • 31
  • 2
3
votes
2 answers

Fail to install curb gem in windows7

curb gem fails to install. I am using following configuration:- Windows 7 Ruby 2 Rails 4 gem "bundler 1.3.5" C:\RorProjects>gem install curb Building native extensions. This could take a while... ERROR: Error installing curb: ERROR: Failed to…
Gurpreet Gill
  • 174
  • 1
  • 13
3
votes
3 answers

Ruby gem curb wont install on windows 7, even if I use libcurl

I'm trying to install the curb gem on windows 7 with libcurl but it returns errors. This is for the eventual purpose of running a ruby app on a vm with vagrant, explained here github catarse install. but it returns an error saying: Temporarily…
ecki
  • 780
  • 1
  • 7
  • 20
3
votes
3 answers

How to send DELETE request with body using ruby gem?

I am communicating with API that requires DELETE request with JSON body. This works on console: curl -XDELETE http://api.com/endpoint_path/rest_resource -d '{"items":[{"type":"type1","item_id":"item1"}]}' It seems that most gems for making HTTP…
Lukas Stejskal
  • 2,542
  • 19
  • 30
2
votes
1 answer

curl.perform throws invalid easy handle error under multi-threading env

I use curl of ruby gem curb to fetch multi urls under multi-threading env, but it throws "Invalid easy handle" exception, but if it runs one by one in single-threading env everything is ok. module Http @@curl = Curl::Easy.new @@curl.timeout =…
ywenbo
  • 3,051
  • 6
  • 31
  • 46
2
votes
0 answers

Rails authenticate_or_request_with_http_basic always return Completed 401 Unauthorized

I'm trying to secure my API service using authenticate_or_request_with_http_basic, i have tried in GET and POST method it return true, so i can store/fetch data from API but when i'm trying to update value, the rails always return false and the…
2
votes
1 answer

How to set --data-binary and --compressed in Curb gem

I'd like to set --data-binary and --compressed options. In curl: curl 'http://test.url' --data-binary test_json --compressed How do I set --data-binary and --compressed options in curb?
2
votes
0 answers

What is the Ruby CURB code for this cUrl?

Given the following curl will post to my server, what would the equivalent Ruby code that I can use in my automation scripts? I reviewed this post What is the Ruby equivalent to this curl request? but it would be nice to know the curb syntax…
Cris Rockwell
  • 904
  • 2
  • 16
  • 30
1
2
3
8 9