Better Programming

Advice for programmers.

Follow publication

Member-only story

Using Mitmproxy and Httpie to Improve API Development and Testing

Tommaso De Ponti
Better Programming
Published in
4 min readJul 7, 2022

--

Photo by Yassine Khalfalli on Unsplash

As you develop your APIs, it’s extremely important to deeply check each endpoint (or query). This is for various reasons including security, efficiency, user experience, and so on.

I have lately been developing an API for a personal project and found myself having to decide whether to use Postman or Burp Suite. These are both great tools to test your endpoints and tamper with the data they receive so you can assure great performance and security also on edge-cases.

However, even if I already had experience with both tools, I decided to go out looking for alternatives that may be more easily customizable and better fit my requirements, which mainly are:

  • easily crafting requests
  • modify and interact with the outgoing requests
  • evaluating and filtering responses for lightweight testing

I also didn’t want to spend time writing easy-to-use proxies on my own, which is something I only do when I’m aiming for extremely specific use-cases, like always automatically modifying outgoing requests to the domain test.testing.com.

--

--

Tommaso De Ponti
Tommaso De Ponti

Written by Tommaso De Ponti

Building stuff, #Stellar. https://tdep.xycloo.com. Check my personal blog at https://heytdep.github.io for more specific and/or advanced articles.

Write a response