{"id":237451,"date":"2016-01-29T07:15:48","date_gmt":"2016-01-29T14:15:48","guid":{"rendered":"http:\/\/css-tricks.com\/?p=237451"},"modified":"2018-11-08T07:18:43","modified_gmt":"2018-11-08T14:18:43","slug":"hookbin-capture-inspect-http-requests","status":"publish","type":"post","link":"https:\/\/css-tricks.com\/hookbin-capture-inspect-http-requests\/","title":{"rendered":"Hookbin – Capture and Inspect HTTP Requests"},"content":{"rendered":"

The following is a guest post by Przemek Matylla<\/a>, who created a tool I suspect will be mighty useful for some of you out there. There is a lot of mystery out there in webdev. What value is this variable at this moment in execution? Why is this property being overridden? What’s causing this scrollbar? There is also a mystery with HTTP requests. What data came along for the ride? What metadata? Is everything there (and not there) as I expect? Hopefully, Przemek’s tool can help.<\/em><\/p>\n

<\/p>\n

Update September 2018:<\/strong> This service looks dead. Reader Ankit Jain suggested others like Beeceptor<\/a>, Mockbin<\/a>, or (self-hosted) RequestBin<\/a>.<\/p>\n

Update November 2018<\/strong>: Przemek wrote to say that the service was offline due to extreme abuse, but now has been re-written and re-launched and is more resiliant to attacks.<\/p>\n

When dealing with webhooks, accepting or sending form data, or simply issuing standard HTTP requests, you can find yourself puzzled about what exactly<\/em> was in the payload. What were the HTTP headers? What exactly happened to your multipart uploads?<\/p>\n

Luckily there’s a nifty tool called Hookbin<\/a> (disclaimer: I created it) that greatly reduces the pain of debugging HTTP requests. Let’s take a quick look at the tool and what we can achieve with it.<\/p>\n

<\/figure>\n

What is Hookbin?<\/h3>\n

Hookbin is a free service which allows you to intercept, parse, and debug HTTP requests of any kind. By offering a volatile unique URL (called an “Endpoint”), it enables you to issue requests against that endpoint and check what exactly has been transmitted. The are numerous possible use cases. To name a few:<\/p>\n