2.1.4 WHEN method When coffee is poured, and milk is offered, it is necessary for the holder of the recipient of milk to say "when" at the time when sufficient milk has been introduced into the coffee. For this purpose, the "WHEN" method has been added to HTCPCP. Enough? Say WHEN.
Recent-ish WebKit and Firefox browsers do support PUT and DELETE in XHR requests. I'm pretty sure that any IE < 9 does not, not sure about IE 9 or Opera (though I'd guess Opera does support those verbs).
I was intrigued by all the linked technologies, too. I've spent a day or so writing a site that I can't imagine being more than a few static pages, and it's just running on nginx on this VPS I bought.
I can understand monitoring for a site that -has- to be up (otherwise testing suites would start to break), but not the cloud database, let alone programmable markup or managed hosting (Heroku). Surely all that extra complexity is going to cost more in downtime than the time taken to set things up manually?
While we're honored to see that Cloudant plays a roll in the their app, I imagine the real answer to your question is the phrase "Experiment" at the bottom of the page. I imagine this is about learning/testing, not the most optimized way to skin the cat.
18 lines of node.js to accomplish something similar - I use something similar as a function in my node.js scripts to be able to send a generic error template based on the code that I pass back to the function.
Here's a little something similar I whipped up using Flask (Python):
import time
from flask import Flask, make_response, request
app = Flask(__name__)
@app.route('/<int:status_code>')
def return_status(status_code):
response = make_response()
response.status_code = status_code
response.data = response.status
sleep = request.args.get('sleep', None)
if sleep is not None:
time.sleep(int(sleep))
return response
if __name__ == '__main__':
app.run(debug=True)
With a handy little feature, a "sleep" query string param that'll delay the response for the given number of seconds, which I've used to test how a client handles latency etc.
[BTW, looks like you're the Elliot Carlson I used to work with way back when. Hope life is treating you well these days! :)]
38 comments
[ 3.1 ms ] story [ 54.2 ms ] thread2.1.4 WHEN method When coffee is poured, and milk is offered, it is necessary for the holder of the recipient of milk to say "when" at the time when sufficient milk has been introduced into the coffee. For this purpose, the "WHEN" method has been added to HTCPCP. Enough? Say WHEN.
Varnish is certainly stuffing us up a bit. There's a note about this at the bottom of the page.
If I did this again, I wouldn't deploy it to Heroku for this reason.
100 Unknown Status
They seem to simply truncate the number. E.g., http://httpstat.us/39487394587394857349587 returns "394 Unknown status", but http://httpstat.us/200129038123 will return "200 OK"
source code: https://github.com/arthurk/httpstatus
Mostly, we wanted to play with some tech and we came across the domain name httpstat.us which we just thought was cool.
I can understand monitoring for a site that -has- to be up (otherwise testing suites would start to break), but not the cloud database, let alone programmable markup or managed hosting (Heroku). Surely all that extra complexity is going to cost more in downtime than the time taken to set things up manually?
http://isitbeerti.me was another experiment of ours on the .NET platform
http://httpstat.us/404
HTTP/1.1 404 Not Found Server: nginx/0.7.67 Date: Tue, 15 Feb 2011 14:13:09 GMT Content-Type: text/plain Access-Control-Allow-Origin: * X-Varnish: 651017685 Age: 0 Via: 1.1 varnish Transfer-Encoding: chunked Proxy-Connection: Keep-Alive Connection: Keep-Alive Content-Encoding: gzip
--@slace (co-author of httpstat.us)
[BTW, looks like you're the Elliot Carlson I used to work with way back when. Hope life is treating you well these days! :)]
https://github.com/jonursenbach/http-status-code-definitions
Oops, we seem to have a glitch in our system.
We've been notified; you might try reloading the page in a little while.
v 26026 2077752888