5 ms·
My feature request: a way to generate curl commands, fetch, etc. Browsers can do it, why not a dedicated client for making http calls?
by postalrat 3y ago
My feature request: a way to generate curl commands, fetch, etc. Browsers can do it, why not a dedicated client for making http calls?
- whiskeytuesday 3y agoInsomnia already does this, at least did as of version 2022.6.0. Right click on the name of the request in the sidebar to find "copy as curl" and "generate code", Ctrl+Shift+G also brings up the Generate Code interface. I'll check if the more up to date version that insomnium is based on has the same feature once I get it built.
- whiskeytuesday 3y agoFinally got a build, at least on my machine the features are still there except you can't right click on the list items any more, you have to click the little ▼ next to the item.
- blacksmith_tb 3y agoWhen I went looking for alternatives to Insomnia I was pleasantly surprised to see that RecipeUI[1] will let paste in curl commands with various flags etc. and parse those to generate new entries, pretty slick. 1: https://github.com/RecipeUI/RecipeUI https://github.com/RecipeUI/RecipeUI
- Volbohel 3y agoHi, one of the makers of RecipeUI. Happy to hear this is something you liked! We're still finding edge cases when it comes to parsing cURL commands, so if you find any that we missed please file an issue or send us a message (here or discord). Also glad to hear any other feedback you have :)
- postalrat 3y agoThanks. I looked for that feature before in insomnia and didn't find it.
- archibaldJ 3y agoOoh thanks for the pointer by @whiskeytuesday; just searched it up and found it in "packages/insomnia/src/common/hotkeys.ts". So in version 2023.5.8 (and Insomnium), it is Ctrl+Shift+G on Window/Linux and Cmd+Shift+G on Mac. And it will open a window showing the curl code. I will definitely re-add this to the UI in Insomnium v0.2 to make it more obvious (In v2023.5.8, this is supposed to show up after one opens "▼" and clicks "Generate Client Code" and then select "curl" but I think there is a bug and the full-list is not showing.)
- archibaldJ 3y agoin insomnium v0.1.1, I've renamed it to "show CURL code, etc" and configured CURL to be the default (among all options I think this is what most people would use the most too). You would see it after opening the dropdown menu "▼" besides "Send".