The secret sauce for cookies:
resp = RestClient.post(server_url’ + ‘/resource’, :args => “”)
@session_cookies = resp.cookies
Then when calling again:
RestClient.put(’#{server_url + ‘/resource/id’,
{:args => args}, {:cookies => @session_cookies})
You have to use a payload (:args => args) for PUT and it must be the
first argument. The :cookies hash must be the second argument to
put().
Cheers,
Ed
On Mon, Dec 21, 2009 at 5:59 PM, Nicholas W.