Skip to content

Instantly share code, notes, and snippets.

@benr75
Created April 16, 2010 20:20
Show Gist options
  • Save benr75/368923 to your computer and use it in GitHub Desktop.
Save benr75/368923 to your computer and use it in GitHub Desktop.
require 'curb'
Facebooker.use_curl = true
class Facebooker::Service::CurlService < Facebooker::Service::BaseService
def post_form(url,params,multipart=false)
curl = Curl::Easy.new(url.to_s) do |c|
c.headers["Expect:"] = ""
c.multipart_form_post = multipart
c.timeout = Facebooker.timeout
end
curl.http_post(*to_curb_params(params))
end
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment