I am trying to use ruby rest-client to upload a large number of images to a site that I\'m writing. My code looks like:
RestClient.post url, :timeout => 9000
I'm having similar issues. A quick dive into the source reveals this bit of unfriendliness:
def self.post(url, payload, headers={}, &block)
Request.execute(:method => :post, :url => url, :payload => payload, :headers => headers, &block)
end
Unless I'm missing something, the timeout options aren't passed on to the underlying request. Time for a patch ...