Debug RESTful clients with echo.httpkit.com
That awkward moment when the HTTP user agent you're using has no logging facilities... Don't hurry to open Wireshark (yet)! echo.httpkit.com is the printf()
of the Web:
curl -F test=@/etc/shells echo.httpkit.com
Yields:
{
"method": "POST",
"uri": "/",
"path": {
"name": "/",
"query": "",
"params": {}
},
"headers": {
"x-forwarded-for": "###.###.###.###",
"host": "echo.httpkit.com",
"user-agent": "curl/7.30.0",
"accept": "*/*",
"accept-encoding": "deflate, gzip",
"content-length": "223",
"content-type": "multipart/form-data; boundary=----------------------------29308b484d0e"
},
"body": "------------------------------29308b484d0e\r\nContent-Disposition: form-data; name=\"test\"; filename=\"ntp.conf\"\r\nContent-Type: application/octet-stream\r\n\r\nserver time.apple.com.\n\r\n------------------------------29308b484d0e--\r\n",
"ip": "127.0.0.1",
"powered-by": "http://httpkit.com",
"docs": "http://httpkit.com/echo"
}
Written by Stanislaw Pusep
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Debug
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#