RestClient 0.8

restclient

Tue Oct 14 13:52:00 -0700 2008

Restclient 0.8 released with new features:

  • The restclient binary can take get/put/post/delete as the first argument:
$ restclient get http://example.com

Try it with a payload and authentication:

$ cat body | restclient post https://example.com user pass

Take that, curl.

  • Set default headers when creating resources, courtesy of Pedro Belo:
RestClient::Resource.new("http://example.com", :headers => { :custom_header => 'something' })

All subresources created from the master resource will inherit the headers.

  • Proxy support, courtsey of Brian Donovan:
RestClient.proxy = 'http://proxy.example.com/'
RestClient.get 'http://some/resource'