!tape interactions: - recorded: 2013-10-01T21:53:48.227Z request: method: GET uri: http://httpbin.org/robots.txt headers: Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Accept-Encoding: gzip Host: httpbin.org Proxy-Connection: keep-alive User-Agent: Java/1.7.0_05 response: status: 200 headers: Access-Control-Allow-Origin: '*' Connection: keep-alive Content-Length: '30' Content-Type: text/plain Date: Tue, 01 Oct 2013 21:53:47 GMT Server: gunicorn/0.17.4 body: | User-agent: * Disallow: /deny - recorded: 2013-10-01T21:53:50.934Z request: method: GET uri: http://httpbin.org/html headers: Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Accept-Encoding: gzip Host: httpbin.org Proxy-Connection: keep-alive User-Agent: Java/1.7.0_05 response: status: 200 headers: Access-Control-Allow-Origin: '*' Connection: keep-alive Content-Length: '3741' Content-Type: text/html; charset=utf-8 Date: Tue, 01 Oct 2013 21:53:49 GMT Server: gunicorn/0.17.4 body: |-

Herman Melville - Moby-Dick

Availing himself of the mild, summer-cool weather that now reigned in these latitudes, and in preparation for the peculiarly active pursuits shortly to be anticipated, Perth, the begrimed, blistered old blacksmith, had not removed his portable forge to the hold again, after concluding his contributory work for Ahab's leg, but still retained it on deck, fast lashed to ringbolts by the foremast; being now almost incessantly invoked by the headsmen, and harpooneers, and bowsmen to do some little job for them; altering, or repairing, or new shaping their various weapons and boat furniture. Often he would be surrounded by an eager circle, all waiting to be served; holding boat-spades, pike-heads, harpoons, and lances, and jealously watching his every sooty movement, as he toiled. Nevertheless, this old man's was a patient hammer wielded by a patient arm. No murmur, no impatience, no petulance did come from him. Silent, slow, and solemn; bowing over still further his chronically broken back, he toiled away, as if toil were life itself, and the heavy beating of his hammer the heavy beating of his heart. And so it was.—Most miserable! A peculiar walk in this old man, a certain slight but painful appearing yawing in his gait, had at an early period of the voyage excited the curiosity of the mariners. And to the importunity of their persisted questionings he had finally given in; and so it came to pass that every one now knew the shameful story of his wretched fate. Belated, and not innocently, one bitter winter's midnight, on the road running between two country towns, the blacksmith half-stupidly felt the deadly numbness stealing over him, and sought refuge in a leaning, dilapidated barn. The issue was, the loss of the extremities of both feet. Out of this revelation, part by part, at last came out the four acts of the gladness, and the one long, and as yet uncatastrophied fifth act of the grief of his life's drama. He was an old man, who, at the age of nearly sixty, had postponedly encountered that thing in sorrow's technicals called ruin. He had been an artisan of famed excellence, and with plenty to do; owned a house and garden; embraced a youthful, daughter-like, loving wife, and three blithe, ruddy children; every Sunday went to a cheerful-looking church, planted in a grove. But one night, under cover of darkness, and further concealed in a most cunning disguisement, a desperate burglar slid into his happy home, and robbed them all of everything. And darker yet to tell, the blacksmith himself did ignorantly conduct this burglar into his family's heart. It was the Bottle Conjuror! Upon the opening of that fatal cork, forth flew the fiend, and shrivelled up his home. Now, for prudent, most wise, and economic reasons, the blacksmith's shop was in the basement of his dwelling, but with a separate entrance to it; so that always had the young and loving healthy wife listened with no unhappy nervousness, but with vigorous pleasure, to the stout ringing of her young-armed old husband's hammer; whose reverberations, muffled by passing through the floors and walls, came up to her, not unsweetly, in her nursery; and so, to stout Labor's iron lullaby, the blacksmith's infants were rocked to slumber. Oh, woe on woe! Oh, Death, why canst thou not sometimes be timely? Hadst thou taken this old blacksmith to thyself ere his full ruin came upon him, then had the young widow had a delicious grief, and her orphans a truly venerable, legendary sire to dream of in their after years; and all of them a care-killing competency.

- recorded: 2013-10-01T21:53:59.023Z request: method: GET uri: http://httpbin.org/get headers: Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Host: httpbin.org Proxy-Connection: keep-alive User-Agent: Java/1.7.0_05 response: status: 200 headers: Access-Control-Allow-Origin: '*' Connection: keep-alive Content-Length: '279' Content-Type: application/json Date: Tue, 01 Oct 2013 21:53:58 GMT Server: gunicorn/0.17.4 body: |- { "url": "http://httpbin.org/get", "headers": { "Host": "httpbin.org", "User-Agent": "Java/1.7.0_05", "Connection": "close", "Accept": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2", "Via": "Betamax" }, "origin": "90.197.88.40", "args": {} } - recorded: 2013-10-01T21:53:56.133Z request: method: GET uri: http://httpbin.org/gzip headers: Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Accept-Encoding: gzip Host: httpbin.org Proxy-Connection: keep-alive User-Agent: Java/1.7.0_05 response: status: 200 headers: Access-Control-Allow-Origin: '*' Connection: keep-alive Content-Encoding: gzip Content-Length: '225' Content-Type: application/json Date: Tue, 01 Oct 2013 21:53:55 GMT Server: gunicorn/0.17.4 body: |- { "gzipped": true, "headers": { "Accept": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2", "Connection": "close", "Via": "Betamax", "Host": "httpbin.org", "Accept-Encoding": "gzip", "User-Agent": "Java/1.7.0_05" }, "origin": "90.197.88.40", "method": "GET" } - recorded: 2013-10-01T21:53:58.731Z request: method: GET uri: http://httpbin.org/redirect/1 headers: Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Host: httpbin.org Proxy-Connection: keep-alive User-Agent: Java/1.7.0_05 response: status: 302 headers: Access-Control-Allow-Origin: '*' Connection: keep-alive Content-Length: '215' Content-Type: text/html; charset=utf-8 Date: Tue, 01 Oct 2013 21:53:57 GMT Location: /get Server: gunicorn/0.17.4 body: |- Redirecting...

Redirecting...

You should be redirected automatically to target URL: /get. If not click the link. - recorded: 2013-10-01T21:54:02.428Z request: method: GET uri: https://httpbin.org/get headers: Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive Host: httpbin.org User-Agent: Java/1.7.0_05 response: status: 200 headers: Access-Control-Allow-Origin: '*' Connection: keep-alive Content-Length: '279' Content-Type: application/json Date: Tue, 01 Oct 2013 21:54:01 GMT Server: gunicorn/0.17.4 body: |- { "headers": { "Accept": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2", "User-Agent": "Java/1.7.0_05", "Connection": "close", "Via": "Betamax", "Host": "httpbin.org" }, "args": {}, "url": "http://httpbin.org/get", "origin": "90.197.88.40" } - recorded: 2013-10-01T21:54:05.424Z request: method: POST uri: https://httpbin.org/post headers: Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: close Content-Length: '13' Content-type: application/x-www-form-urlencoded Host: httpbin.org Proxy-Connection: keep-alive User-Agent: Java/1.7.0_05 body: message=O HAI response: status: 200 headers: Access-Control-Allow-Origin: '*' Connection: keep-alive Content-Length: '450' Content-Type: application/json Date: Tue, 01 Oct 2013 21:54:04 GMT Server: gunicorn/0.17.4 body: |- { "files": {}, "data": "", "url": "http://httpbin.org/post", "args": {}, "origin": "90.197.88.40", "form": { "message": "O HAI" }, "headers": { "Content-Type": "application/x-www-form-urlencoded", "Connection": "close", "Accept": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2", "Content-Length": "13", "Via": "Betamax", "Host": "httpbin.org", "User-Agent": "Java/1.7.0_05" }, "json": null } - recorded: 2013-10-01T21:54:08.105Z request: method: GET uri: http://httpbin.org headers: Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Host: httpbin.org Proxy-Connection: keep-alive User-Agent: Java/1.7.0_05 response: status: 200 headers: Access-Control-Allow-Origin: '*' Connection: keep-alive Content-Length: '7641' Content-Type: text/html; charset=utf-8 Date: Tue, 01 Oct 2013 21:54:07 GMT Server: gunicorn/0.17.4 body: |- httpbin(1): HTTP Client Testing Service Fork me on GitHub

httpbin(1): HTTP Request & Response Service

Freely hosted in HTTP, HTTPS & EU flavors by Runscope.

ENDPOINTS

DESCRIPTION

Testing an HTTP Library can become difficult sometimes. Postbin is fantastic for testing POST requests, but not much else. This exists to cover all kinds of HTTP scenarios. Additional endpoints are being considered (e.g. /deflate).

All endpoint responses are JSON-encoded.

EXAMPLES

$ curl http://httpbin.org/ip

{"origin": "24.127.96.129"}
      

$ curl http://httpbin.org/user-agent

{"user-agent": "curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3"}
      

$ curl http://httpbin.org/get

{
         "args": {},
         "headers": {
            "Accept": "*/*",
            "Connection": "close",
            "Content-Length": "",
            "Content-Type": "",
            "Host": "httpbin.org",
            "User-Agent": "curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3"
         },
         "origin": "24.127.96.129",
         "url": "http://httpbin.org/get"
      }
      

$ curl -I http://httpbin.org/status/418

HTTP/1.1 418 I'M A TEAPOT
      Server: nginx/0.7.67
      Date: Mon, 13 Jun 2011 04:25:38 GMT
      Connection: close
      x-more-info: http://tools.ietf.org/html/rfc2324
      Content-Length: 135
      

AUTHOR

A Kenneth Reitz Project.

SEE ALSO

http://python-requests.org

name: smoke spec