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
2
votes
0 answers

Unable to install Curb on Linux 14.04 using apt-get install libcurl4-openssl-dev

I am trying to install Curb using command apt-get install libcurl4-openssl-dev on Linux 14.04 Detail below apt-get install libcurl4-openssl-dev Reading package lists... Done Building dependency tree Reading state information... Done Some packages…
fizrock
  • 71
  • 2
  • 9
2
votes
2 answers

team city api returns json example

I'm struggling with getting results from the team city api in JSON require 'open-uri' url = ".../app/rest/buildQueue/" c = Curl::Easy.new(url) do |curl| curl.headers["Content-type"] = "application/json" curl.http_auth_types = :basic …
user1781626
2
votes
1 answer

Curb epsv problem

I'm having a problem using Curb (ruby curl bindings) for FTP downloads. It looks like curb doesn't fall back to simple passive mode when extended passive mode fails. Extract from the log follows: < 250 Directory changed to…
Evgeny Shadchnev
  • 7,320
  • 4
  • 27
  • 30
2
votes
1 answer

Installing libCurl - ruby 1.9.3 .. rails 3.2.12 .. Windows

So, I'm trying to get feedzirra up and running... ruby 1.9.3p448 Rails 3.2.12 I went to http://curl.haxx.se/download.html#Win32 and downloaded Win32 2000/XP 7.32.0 libcurl SSL. It may be obvious, but this is libcurl -v 7.32. I unzipped the…
Dudo
  • 4,002
  • 8
  • 32
  • 57
2
votes
1 answer

feedzirra windows latest curb version issue

I am trying to install feedzirra but I am running into trouble. When I install Feedzirra, it looks for curb (0.7.18). I followed the instructions to install curb on windows >gem install curb -- --with-curl-lib=C:/curl-7.27.0-devel-mingw 32/bin…
gkolan
  • 1,571
  • 2
  • 20
  • 37
2
votes
2 answers

Doing a Post with Ruby Curb with basic authentication

I am trying to automate the following curl command line into Ruby Curb: curl -H "Content-Type:application/json" -X POST -d \ '{"approvalType": "auto", "displayName": "Free API Product", "name": "weather_free", "proxies": [ "weatherapi" ], …
Mike Malloy
  • 1,520
  • 1
  • 15
  • 19
2
votes
1 answer

Using ruby curb gem to access paypal api

Follow the instruction in Paypal Developer 'make your first call': curl https://api.sandbox.paypal.com/v1/oauth2/token \ -H "Accept: application/json" \ -H "Accept-Language: en_US" \ -u…
Chuyi Huang
  • 444
  • 1
  • 5
  • 17
2
votes
0 answers

Installing curb (0.7.18) on ubuntu 12.10 with ruby 1.9.3p194

I tried installing libcurl4-openssl-dev but didn't work. Does anyone had this kind of issue? Here is the output of the bundle install. Installing curb (0.7.18) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build…
2
votes
1 answer

Bundle Install Fails on Curb Gem - Mac OS X 10.8.2

When I try to run bundle installthis is the issue I am running into: Installing curb (0.8.1) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. …
dennismonsewicz
  • 25,132
  • 33
  • 116
  • 189
1
vote
1 answer

SSLCaertBadFile error heroku curb

I have a rake task that pulls and parses JSON data over an SSL connection from an external API. I use a gem that wraps this external API and have no problems running locally, but the task fails when run on heroku with #
manafire
  • 5,984
  • 4
  • 43
  • 53
1
vote
1 answer

curb gem on Mac Lion

I'm trying to install the curb gem in my Mac OSX Lion. I tried all solutions cited here already, like Having Issues with Curb gem on Mac Snow Leopard my environment ruby 1.9.2 (rvm), mac OSX Lion, Xcode installed, lib curl (through sudo port…
VP.
  • 5,122
  • 6
  • 46
  • 71
1
vote
0 answers

After upgrading to MAC OS 13(Ventura), an error occurred while installing curb (0.9.11), and Bundler cannot continue

Not able to bundle install due to installation failed with curb 0.9.11. Was working fine with Mac OS 12, but after upgrading to ventura getting above error. ERROR: Error installing curb: ERROR: Failed to build gem native extension. current…
1
vote
1 answer

Ubuntu / Curb cant install - what is missing?

I've debian wheezy 7 on my server, and Im trying to install curb gem. I've installed libcurl4-gnutls-dev libcurl3 libcurl3-gnutls libcurl4-openssl-dev curl is installed: curl --version curl 7.38.0 (x86_64-pc-linux-gnu) libcurl/7.38.0 OpenSSL/1.0.1t…
Rafath
  • 190
  • 1
  • 2
  • 11
1
vote
1 answer

Can't collect pagination

while page <= last_page pagination=("https://www.petsonic.com/snacks-huesos-para-perros/?=#{page}") puts pagination doc2=Nokogiri::HTML(Curl.get(pagination).body_str) links=doc2.xpath('//a[@class="product-name"]/@href') links.each do…
PTaHHHa
  • 67
  • 1
  • 11
1
vote
1 answer

How to go through array of URLs using Curb

I need to parse this page https://www.petsonic.com/snacks-huesos-para-perros/ and recieve information from every item(name,price,image,etc.). The problem is that i don't know how to parse array of URL. If i were using 'open-uri' i would do something…
PTaHHHa
  • 67
  • 1
  • 11
1 2
3
8 9