"curb(curl) for jruby?" Code Answer

23

According to the curb documentation (http://curb.rubyforge.org/), curb is "Ruby-language bindings for the libcurl".

So unless the gem uses FFI, no it wont work with JRuby. I don't believe it will work with Windows either.

In jruby, you could make a shell call and use backticks to capture the output from curl.

Or you could use Net::HTTP and Time like so:

require 'net/http'
require 'time'
s = Time.new
html = Net::HTTP.get(URI.parse('http://yoursite/'))
puts Time.new - s
By a_a on April 8 2022

Answers related to “curb(curl) for jruby?”

Only authorized users can answer the Search term. Please sign in first, or register a free account.