| CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Tue, 23 Dec 2025 11:02:20 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100531150255
location: https://web.archive.org/web/20100531150255/https://github.com/johnsheehan/RestSharp
server-timing: captures_list;dur=1.101026, exclusion.robots;dur=0.099056, exclusion.robots.policy;dur=0.080127, esindex;dur=0.013917, cdx.remote;dur=16.589216, LoadShardBlock;dur=212.622192, PetaboxLoader3.datanode;dur=72.794571, PetaboxLoader3.resolve;dur=34.668161
x-app-server: wwwb-app28-dc8
x-ts: 302
x-tr: 286
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app28; 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: Tue, 23 Dec 2025 11:02:21 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Mon, 31 May 2010 15:02:55 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "ca811320da3c3e1cb99bcbfc2194feae"
x-archive-orig-x-runtime: 54ms
x-archive-orig-content-length: 26164
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: Mon, 31 May 2010 15:02:55 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: 52_16_20100531132023_crawl103-c/52_16_20100531145959_crawl101.arc.gz
server-timing: captures_list;dur=1.205878, exclusion.robots;dur=0.132472, exclusion.robots.policy;dur=0.032317, esindex;dur=0.015226, cdx.remote;dur=105.990232, LoadShardBlock;dur=336.135369, PetaboxLoader3.datanode;dur=158.329119, PetaboxLoader3.resolve;dur=281.828028, load_resource;dur=130.383766
x-app-server: wwwb-app28-dc8
x-ts: 200
x-tr: 656
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
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
johnsheehan's RestSharp at master - GitHub
johnsheehan / RestSharp
- Source
- Commits
- Network (13)
- Issues (7)
- Downloads (0)
- Wiki (10)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
README.markdown
RestSharp - .NET REST Client That (Hopefully) Doesn't Suck
https://restsharp.org - @RestSharp
License: Apache License 2.0
Key Features
- Automatic XML and JSON deserialization
- Fuzzy name matching ('product_id' in XML/JSON will match property named 'ProductId')
- Automatic detection of type of content returned
- GET, POST, PUT, HEAD, OPTIONS, DELETE supported
- Basic, NTLM and Parameter-based Authenticators included
- Supports custom authentication schemes
- Multi-part form/file uploads
- T4 Helper to generate C# classes from an XML document
Basic Usage
var client = new RestClient();
client.BaseUrl = "https://example.com";
// client.Authenticator = new BasicAuthenticator(username, password);
var request = new RestRequest(); // GET by default
// request.Method = Method.GET | Method.POST | Method.PUT | Method.DELETE | Method.HEAD | Method.OPTIONS
request.Resource = "resource";
request.AddParameter("name", "value");
// add parameters for all properties on an object
request.AddObject(object);
// or just whitelisted properties
request.AddObject(object, "PersonId", "Name", ...);
// easily add HTTP Headers
request.AddParameter("header", "value", ParameterType.HttpHeader);
// supports XML/JSON request bodies
request.RequestFormat = RequestFormat.Xml;
request.AddBody(object);
// add files (only works with compatible verbs)
request.AddFile(path);
// get raw response
RestResponse response = client.Execute(request);
// response.Content : string representation of response
// or automatically deserialize result
// return content type is sniffed but can be explicitly set via RestClient.AddHandler();
RestResponse<Person> response2 = client.Execute<Person>(request);
var name = response2.Data.Name;
// or download and save file to disk
client.DownloadData(request).SaveAs(path);
// shortcuts for parsing xml/feeds
client.ExecuteAsXDocument(request);
client.ExecuteAsXmlDocument(request);
client.ExecuteAsSyndicationFeed(request);

