I’ve forked Adam Wiggins’ wonderful project rest-client and added a horrible hack for SSL support. To wit, adding a header :ssl with any non-nil value in a request will add SSL authentication. Fo’ example:
a = RestClient::Resource.new 'https://api.del.icio.us/v1/posts/update', 'username', 'password' a.get :user_agent => 'random_service/1.0.0', :ssl => true # => "<?xml version='1.0' standalone='yes'?>\n<update time=\"2008-03-24T13:11:50Z\"/>\n"
The catch? It breaks a few specs, but they appear to be breaking because they attempt to access a web URL of ‘http://some/location’, and fail the address lookup. So eventually I’ll fix up those specs. Or someone else could. You know, whatever. :-)
The commit in question: f82206d.
