Reputation: 759
I need to copy as curl a request sent by bruno. I tried to do it inside the timeline tab or by inspecting the developer tool. But none of them allows this possibility.
Is there a way to achieve it?
Upvotes: 13
Views: 7972
Reputation: 677
Jens Geiregat's answer was not all when I wanted to test my API. curl by default adds a header Content-Type: application/x-www-form-urlencoded
which was not understood by my API. In addition to the curl command generated by Bruno, I needed the option -H 'Content-Type:'
. That option suppressed the unwanted header.
EDIT: This worked under MinGW, not in a DOS prompt.
Upvotes: 0
Reputation: 389
In the left sidebar, mouse over your request. Click the 3 dots that appear '...'. Choose 'Generate Code'. In the window that appears, select 'Shell-Curl'.
Upvotes: 16