CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sun, 24 Aug 2025 09:19:40 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20081119104907
location: https://web.archive.org/web/20081119104907/https://github.com/adamwiggins/rest-client/tree
server-timing: captures_list;dur=0.836199, exclusion.robots;dur=0.025345, exclusion.robots.policy;dur=0.011109, esindex;dur=0.013229, cdx.remote;dur=15.043981, LoadShardBlock;dur=134.354480, PetaboxLoader3.datanode;dur=52.159086, PetaboxLoader3.resolve;dur=46.759045
x-app-server: wwwb-app217
x-ts: 302
x-tr: 190
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app217; path=/
x-location: All
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 301
server: nginx
date: Sun, 24 Aug 2025 09:19:41 GMT
content-type: text/html; charset=utf-8
content-length: 119
x-archive-orig-server: nginx/0.6.31
x-archive-orig-date: Wed, 19 Nov 2008 10:49:10 GMT
x-archive-orig-connection: close
x-archive-orig-status: 301 Moved Permanently
location: https://web.archive.org/web/20081119104907/https://github.com/adamwiggins/rest-client/tree/master
x-archive-orig-x-runtime: 143ms
x-archive-orig-cache-control: no-cache
x-archive-orig-content-length: 119
cache-control: max-age=1800
memento-datetime: Wed, 19 Nov 2008 10:49:07 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Fri, 09 May 2008 16:12:18 GMT", ; rel="prev memento"; datetime="Fri, 19 Sep 2008 20:42:44 GMT", ; rel="memento"; datetime="Wed, 19 Nov 2008 10:49:07 GMT", ; rel="next memento"; datetime="Thu, 04 Dec 2008 23:17:06 GMT", ; rel="last memento"; datetime="Mon, 12 Apr 2010 23:20:11 GMT"
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: BNF-CRAWL-004-20081119100551-11134-crawling100-c/BNF-CRAWL-004-20081119104129-09638-crawling108.us.archive.org.arc.gz
server-timing: captures_list;dur=2.352957, exclusion.robots;dur=0.018351, exclusion.robots.policy;dur=0.008103, esindex;dur=0.011530, cdx.remote;dur=9.304401, LoadShardBlock;dur=321.893403, PetaboxLoader3.datanode;dur=189.534714, PetaboxLoader3.resolve;dur=305.807568, load_resource;dur=199.865306
x-app-server: wwwb-app217
x-ts: 301
x-tr: 561
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
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 302
server: nginx
date: Sun, 24 Aug 2025 09:19:41 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20081204231706
location: https://web.archive.org/web/20081204231706/https://github.com/adamwiggins/rest-client/tree/master
server-timing: captures_list;dur=0.531705, exclusion.robots;dur=0.020508, exclusion.robots.policy;dur=0.009447, esindex;dur=0.010867, cdx.remote;dur=11.675280, LoadShardBlock;dur=118.430587, PetaboxLoader3.datanode;dur=55.864051, PetaboxLoader3.resolve;dur=45.393839
x-app-server: wwwb-app217
x-ts: 302
x-tr: 158
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
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: Sun, 24 Aug 2025 09:19:42 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.26
x-archive-orig-date: Thu, 04 Dec 2008 23:17:06 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-x-runtime: 99ms
x-archive-orig-etag: "685b6d753eafd60de715f6e3dfaf1ecc"
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 18826
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Thu, 04 Dec 2008 23:17:06 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Thu, 08 May 2008 22:28:30 GMT", ; rel="prev memento"; datetime="Wed, 15 Oct 2008 04:35:10 GMT", ; rel="memento"; datetime="Thu, 04 Dec 2008 23:17:06 GMT", ; rel="next memento"; datetime="Sat, 06 Dec 2008 00:17:59 GMT", ; rel="last memento"; datetime="Sat, 17 Aug 2024 06:19:15 GMT"
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: 52_7_20081204090336_crawl107-c/52_7_20081204231119_crawl103.arc.gz
server-timing: captures_list;dur=0.602480, exclusion.robots;dur=0.024084, exclusion.robots.policy;dur=0.010563, esindex;dur=0.013562, cdx.remote;dur=9.051736, LoadShardBlock;dur=93.256932, PetaboxLoader3.datanode;dur=180.073468, PetaboxLoader3.resolve;dur=94.301768, load_resource;dur=186.142435
x-app-server: wwwb-app217
x-ts: 200
x-tr: 357
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
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
adamwiggins's rest-client at master — GitHub
GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009! [ hide ]
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 (

Description: | Simple REST client for Ruby, inspired by microframework syntax for specifying actions. |
Homepage: | https://rest-client.heroku.com/ |
Clone URL: |
git://github.com/adamwiggins/rest-client.git
Give this clone URL to anyone.
git clone git://github.com/adamwiggins/rest-client.git
|
name | age | message | |
---|---|---|---|
![]() |
.gitignore | Mon Mar 10 16:52:59 -0700 2008 | credentials sent via http basic auth [adamwiggins] |
![]() |
README.rdoc | Tue Nov 18 15:08:01 -0800 2008 | readme.rdoc [adamwiggins] |
![]() |
Rakefile | Wed Dec 03 00:57:20 -0800 2008 | v0.8.2 [adamwiggins] |
![]() |
bin/ | Tue Sep 23 16:00:50 -0700 2008 | CLI one-offs print response body on error [adamwiggins] |
![]() |
lib/ | Wed Nov 26 17:42:16 -0800 2008 | add the http response to Unauthorized and Resou... [pedro] |
![]() |
rest-client.gemspec | Wed Dec 03 00:57:20 -0800 2008 | v0.8.2 [adamwiggins] |
![]() |
spec/ | Wed Nov 26 17:42:16 -0800 2008 | add the http response to Unauthorized and Resou... [pedro] |
README.rdoc
= REST Client -- simple DSL for accessing REST resources A simple REST client for Ruby, inspired by the Sinatra's microframework style of specifying actions: get, put, post, delete. == Usage: Raw URL require 'rest_client' RestClient.get 'https://example.com/resource' RestClient.get 'https://user:password@example.com/private/resource' RestClient.post 'https://example.com/resource', :param1 => 'one', :nested => { :param2 => 'two' } RestClient.delete 'https://example.com/resource' See RestClient module docs for details. == Usage: ActiveResource-Style resource = RestClient::Resource.new 'https://example.com/resource' resource.get private_resource = RestClient::Resource.new 'https://example.com/private/resource', 'user', 'pass' private_resource.put File.read('pic.jpg'), :content_type => 'image/jpg' See RestClient::Resource module docs for details. == Usage: Resource Nesting site = RestClient::Resource.new('https://example.com') site['posts/1/comments'].post 'Good article.', :content_type => 'text/plain' See RestClient::Resource docs for details. == Shell The restclient shell command gives an IRB session with RestClient already loaded: $ restclient >> RestClient.get 'https://example.com' Specify a URL argument for get/post/put/delete on that resource: $ restclient https://example.com >> put '/resource', 'data' Add a user and password for authenticated resources: $ restclient https://example.com user pass >> delete '/private/resource' Create ~/.restclient for named sessions: sinatra: url: https://localhost:4567 rack: url: https://localhost:9292 private_site: url: https://example.com username: user password: pass Then invoke: $ restclient private_site Use as a one-off, curl-style: $ restclient get https://example.com/resource > output_body $ restclient put https://example.com/resource < input_body == Logging Write calls to a log filename (can also be "stdout" or "stderr"): RestClient.log = '/tmp/restclient.log' Or set an environment variable to avoid modifying the code: $ RESTCLIENT_LOG=stdout path/to/my/program Either produces logs like this: RestClient.get "https://some/resource" # => 200 OK | text/html 250 bytes RestClient.put "https://some/resource", "payload" # => 401 Unauthorized | application/xml 340 bytes Note that these logs are valid Ruby, so you can paste them into the restclient shell or a script to replay your sequence of rest calls. == Proxy All calls to RestClient, including Resources, will use the proxy specified by RestClient.proxy: RestClient.proxy = "https://proxy.example.com/" RestClient.get "https://some/resource" # => response from some/resource as proxied through proxy.example.com Often the proxy url is set in an environment variable, so you can do this to use whatever proxy the system is configured to use: RestClient.proxy = ENV['http_proxy'] == Meta Written by Adam Wiggins (adam at heroku dot com) Patches contributed by: Chris Anderson, Greg Borenstein, Ardekantur, Pedro Belo, Rafael Souza, Rick Olson, Aman Gupta, Blake Mizerany, Brian Donovan, and Ivan Makfinsky Released under the MIT License: https://www.opensource.org/licenses/mit-license.php https://rest-client.heroku.com https://github.com/adamwiggins/rest-client
This feature is coming soon. Sit tight!