| CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Fri, 16 Jan 2026 14:20:40 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100213223210
location: https://web.archive.org/web/20100213223210/https://github.com/paul/resourceful
server-timing: captures_list;dur=0.544229, exclusion.robots;dur=0.040088, exclusion.robots.policy;dur=0.030139, esindex;dur=0.009419, cdx.remote;dur=60.005499, LoadShardBlock;dur=357.153087, PetaboxLoader3.resolve;dur=113.404678, PetaboxLoader3.datanode;dur=112.026163
x-app-server: wwwb-app213-dc8
x-ts: 302
x-tr: 439
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app213; path=/
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Fri, 16 Jan 2026 14:20:41 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Sat, 13 Feb 2010 22:32:10 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "1dd992308453decd5bee10dae1a60d43"
x-archive-orig-x-runtime: 139ms
x-archive-orig-content-length: 28964
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sat, 13 Feb 2010 22:32:10 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 51_14_20100213164153_crawl102-c/51_14_20100213221704_crawl101.arc.gz
server-timing: captures_list;dur=0.507995, exclusion.robots;dur=0.018217, exclusion.robots.policy;dur=0.008136, esindex;dur=0.009394, cdx.remote;dur=23.553267, LoadShardBlock;dur=264.173167, PetaboxLoader3.datanode;dur=208.781699, PetaboxLoader3.resolve;dur=111.788273, load_resource;dur=82.409270
x-app-server: wwwb-app213-dc8
x-ts: 200
x-tr: 435
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
paul's resourceful at master - GitHub
This service is courtesy of Pledgie.
paul / resourceful forked from pezra/resourceful
- Source
- Commits
- Network (2)
- Issues (0)
- Downloads (8)
- Wiki (1)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
Sending Request…
Enable Donations
Pledgie Donations
Once activated, we'll place the following badge in your repository's detail box:
An HTTP library for Ruby that takes advantage of everything HTTP has to offer. — Read more
| name | age | message | |
|---|---|---|---|
| |
.autotest | Mon May 12 17:18:16 -0700 2008 | Refactor redirects [paul] |
| |
.gitignore | Mon Feb 16 12:36:15 -0800 2009 | Include the manifest, so the rake file works [paul] |
| |
History.txt | Tue Jan 26 10:52:11 -0800 2010 | more convenience methods [pezra] |
| |
MIT-LICENSE | Tue Jun 24 08:18:11 -0700 2008 | Updated README and license file. [Peter Williams] |
| |
Manifest | Tue Jan 26 13:40:56 -0800 2010 | Version bump to 1.0.1 [paul] |
| |
README.markdown | Tue Jan 26 10:54:00 -0800 2010 | Update readme with new convenience methods [paul] |
| |
Rakefile | Tue Oct 06 07:59:35 -0700 2009 | Removed require of facets since we don't use it... [pezra] |
| |
lib/ | Tue Jan 26 13:40:56 -0800 2010 | Version bump to 1.0.1 [paul] |
| |
resourceful.gemspec | Tue Jan 26 13:40:56 -0800 2010 | Version bump to 1.0.1 [paul] |
| |
spec/ | Tue Jan 26 13:33:54 -0800 2010 | added acceptance test to verify preceding fix [pezra] |
README.markdown
Resourceful
Resourceful provides a convenient Ruby API for making HTTP requests.
Features:
- GET, PUT, POST and DELETE HTTP requests
- HTTP Basic and Digest authentication
- HTTP Caching with pluggable backends
- Follow redirects based on the results of a callback
More Info
- Source: Github
- Bug Tracking: Lighthouse
- Project Page: Rubyforge
- Documentation: API Docs
Examples
Getting started
gem install resourceful
Simplest example
require 'resourceful'
resp = Resourceful.get('https://rubyforge.org')
puts resp.body
Get a page requiring HTTP Authentication
my_realm_authenticator = Resourceful::BasicAuthenticator.new('My Realm', 'admin', 'secret')
http = Resourceful::HttpAccessor.new(:authenticator => my_realm_authenticator)
resp = http.resource('https://example.com/').get
puts resp.body
Redirection based on callback results
Resourceful will by default follow redirects on read requests (GET and HEAD), but not for POST, etc. If you want to follow a redirect after a post, you will need to set the resource#on_redirect callback. If the callback evaluates to true, it will follow the redirect.
resource = http.resource('https://example.com/redirect_me')
resource.on_redirect { |req, resp| resp.header['Location'] =~ /example.com/ }
resource.get # Will only follow the redirect if the new location is example.com
Post a URL encoded form
require 'resourceful'
http = Resourceful::HttpAccessor.new
resp = http.resource('https://mysite.example/service').
post(Resourceful::UrlencodedFormData.new(:hostname => 'test', :level => 'super'))
Post a Mulitpart form with a file
require 'resourceful'
http = Resourceful::HttpAccessor.new
form_data = Resourceful::MultipartFormData.new(:username => 'me')
form_data.add_file('avatar', '/tmp/my_avatar.png', 'image/png')
resp = http.resource('https://mysite.example/service').post(form_data)
Put an XML document
require 'resourceful'
http = Resourceful::HttpAccessor.new
resp = http.resource('https://mysite.example/service').
put('<?xml version="1.0"?><test/>', :content_type => 'application/xml')
Delete a resource
require 'resourceful'
http = Resourceful::HttpAccessor.new
resp = http.resource('https://mysite.example/service').delete
Copyright
Copyright (c) 2008 Absolute Performance, Inc, Peter Williams. Released under the MIT License.
