in What I have learned today

What I have learned today 2016.10.13

#1 Copy XMLHttpRequest as cURL command

It comes a day in a developer’s life when he needs to replicate a cURL command that runs in the browser. The reasons can be numerous and I’m not here to judge anyone. Anyway, I find it useful for prototyping purposes when working with API’s.

So you know some magic is running in the background and you want to take a look “under the hood”.

You can try this in Chrome or Firefox (mine was Version 53.0.2785.143 (64-bit) ).


Next, to use it you have to paste it in Terminal.


That’s just a basic example but imagine how helpful it can be!

Write a Comment