It happened again. You have an annoying bug with your Java web application, and you’re stepping through with your debugger, and… whoops! looks like you just missed an important line. You fire off the same request again, so you go back to your browser and go through the steps to that point – did I mention it was an Ajax request?
This is where I start using
curl. I know that all the data my request depends on is in the combination of the URL, the POST body (maybe) and the cookies. So I can set up a single line curl command that includes all of those, and use my command line history (up arrow) to run it repeatedly, as many times as I need to fix the bug. No mousing required.