Hurl
hurl.r09.railsrumble.com
hurl.r09.railsrumble.com
For example I can give you this URL: http://hurl.me/ufsmb1
And you can change 'json' to 'xml' to see what changes.
Hurl was inspired by sharing curl input and output over pastebins. We should probably make this more clear.
That said, I regularly test APIs using actual usernames and passwords via HTTP Basic Auth. It will be a cold day in hell before I toss my credentials in cleartext into a web form. :-)
I really like the syntax-highlighted, pretty-printed JSON output, though. Really handy.
A few minutes later: everything seems to give the error:
Cannot allocate memory - fork(2)
I'm workin' on bringing it back up.
http://example.com/tcp?address=example.com:80&send=GET+/+HTTP/1.1%0D%0AHOST:+example.com%0D%0A%0D%0A
Oh wait... did I just re-invented HTTP 1.1 Connect?We do pretty print JSON: http://hurl.me/ufsmb1
Ah, I assume you are relying on the MIME type to be application/json, which is far from universal. A heuristic JSON detector shouldn't be hard.
Second, realize that this was developed from start to finish in 48 hours, by some not untalented people... they seem to have put a lot of thought into it, and the details really show.
Third, saying you could do anything nontrivial in "10 lines of code" reminds me of this guy http://news.ycombinator.com/item?id=678501
Doesn't that seem to emphasize the guy's point? It seems like a neat if simplistic little tool and if you have to watch a video to tell how it's something more...
Sounds like we should change this:
Hurl makes HTTP requests.
Enter a URL, set some headers, then view the response.
Perfect for APIs.
To something like this: Hurl makes HTTP requests.
Enter a URL, set some headers, get a response, then share it with others.
Perfect for demoing and debugging APIs.