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 have used following code and works like a charm as pointed out by Richard
resource = RestClient::Resource.new "url", :timeout => $TIMEOUT, :open_timeout => $OPEN_TIMEOUT response = resource.get :params => { ..... }