This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
README
Resourceful
============
Resourceful provides a convenient Ruby API for making HTTP requests.
Features:
* GET, PUT and POST HTTP requests
* support for HTTP Basic and Digest authentication
* pluggable unmarshallers for parsing response bodies
Example
=======
Get html page
require 'resourceful'
http = Resourceful::HttpAccessor.new
resp = http.resource('http://rubyforge.org').get(:accept => 'text/html')
puts resp.body
Get page requiring HTTP Authentication
require 'resourceful'
class AuthInfoProvider
def authenication_info(realm)
['my_account', 'my-super-secert-password']
end
end
http = Resourceful::HttpAccessor.new(:authentication_info_provider => AuthInfoProvider.new)
resp = http.resource('http://internal-app/').get(:accept => 'text/html')
puts resp.body
Copyright (c) 2008 Absolute Performance, Inc, released under the GNU Lesser General Public License.








