CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Fri, 29 Aug 2025 09:16:15 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20080919204244
location: https://web.archive.org/web/20080919204244/https://github.com/adamwiggins/rest-client/tree
server-timing: captures_list;dur=0.738593, exclusion.robots;dur=0.057952, exclusion.robots.policy;dur=0.014378, esindex;dur=0.015680, cdx.remote;dur=312.985038, LoadShardBlock;dur=247.030810, PetaboxLoader3.datanode;dur=108.946620
x-app-server: wwwb-app220
x-ts: 302
x-tr: 608
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app220; 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 302
server: nginx
date: Fri, 29 Aug 2025 09:16:16 GMT
content-type: text/html; charset=utf-8
content-length: 119
x-archive-orig-server: nginx/0.6.31
x-archive-orig-date: Fri, 19 Sep 2008 20:42:43 GMT
x-archive-orig-connection: close
x-archive-orig-status: 302 Found
location: https://web.archive.org/web/20080919204244/https://github.com/adamwiggins/rest-client/tree/master
x-archive-orig-x-runtime: 0.31016
x-archive-orig-cache-control: no-cache
x-archive-orig-content-length: 119
cache-control: max-age=1800
memento-datetime: Fri, 19 Sep 2008 20:42:44 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="Sun, 06 Jul 2008 19:49:04 GMT", ; rel="memento"; datetime="Fri, 19 Sep 2008 20:42:44 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: 52_5_20080919192256_crawl109-c/52_5_20080919204058_crawl103.arc.gz
server-timing: captures_list;dur=0.848847, exclusion.robots;dur=0.019837, exclusion.robots.policy;dur=0.010053, esindex;dur=0.012921, cdx.remote;dur=123.977233, LoadShardBlock;dur=221.252885, PetaboxLoader3.datanode;dur=236.905502, PetaboxLoader3.resolve;dur=124.372659, load_resource;dur=251.072396
x-app-server: wwwb-app220
x-ts: 302
x-tr: 623
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
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: Fri, 29 Aug 2025 09:16:17 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.26
x-archive-orig-date: Fri, 19 Sep 2008 20:42:44 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-x-runtime: 0.76486
x-archive-orig-etag: "315591faaa475f22ecdb27d47c594035"
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 18191
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Fri, 19 Sep 2008 20:42:44 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="Fri, 05 Sep 2008 18:20:01 GMT", ; rel="memento"; datetime="Fri, 19 Sep 2008 20:42:44 GMT", ; rel="next memento"; datetime="Wed, 15 Oct 2008 04:35:10 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_5_20080919192256_crawl109-c/52_5_20080919204058_crawl103.arc.gz
server-timing: captures_list;dur=0.556767, exclusion.robots;dur=0.018671, exclusion.robots.policy;dur=0.009174, esindex;dur=0.012627, cdx.remote;dur=38.086638, LoadShardBlock;dur=268.108496, PetaboxLoader3.datanode;dur=212.408103, PetaboxLoader3.resolve;dur=210.064122, load_resource;dur=196.843626
x-app-server: wwwb-app220
x-ts: 200
x-tr: 560
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
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
|
Search Repo: |
name | age | message | |
---|---|---|---|
![]() |
.gitignore | Mon Mar 10 16:52:59 -0700 2008 | credentials sent via http basic auth [adamwiggins] |
![]() |
README | Tue Sep 02 20:37:26 -0700 2008 | Add some docs/info for proxying. [eventualbuddha] |
![]() |
Rakefile | Mon Aug 18 23:08:49 -0700 2008 | gem v0.7 [adamwiggins] |
![]() |
bin/ | Fri Aug 01 11:48:56 -0700 2008 | use strings instead of symbols in .restclient s... [adamwiggins] |
![]() |
lib/ | Tue Sep 02 20:37:26 -0700 2008 | Add some docs/info for proxying. [eventualbuddha] |
![]() |
rest-client.gemspec | Mon Aug 18 23:08:49 -0700 2008 | gem v0.7 [adamwiggins] |
![]() |
spec/ | Tue Aug 19 13:29:02 -0700 2008 | Simplify the proxy stuff to just use the global... [eventualbuddha] |
README
= 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 == 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, and Brian Donovan 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!