Last Updated: February 25, 2016
·
1.737K
· creaktive

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"
}