API Test Technique - HTTP client support in JetBeans IDEs
It's common to use a HTTP request client to test API, and you might be familiar with tools like Postman. In this article, I'm going to introduce a more developer-friendly tool available in JetBeans IDEs. 1. Create HTTP request files We just need to create a scratch file with filename extension http , and JetBeans IDE has native support with it, as shown below. Then we can write a http request conveniently, and we can add and modify headers and http body easily. Make sure there is a new line separating the headers and the body. 2. Convert cURL requests This feature is really cool. We can copy out a cURL request from browser developer tools and then paste into the .http file, and it will be converted on the fly.