-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
What feature or new tool do you think should be added to DevToys?
I would do something along the lines of a Curl converter, so that I can take the output from developer tools in the browser, where you take an XHR and 'copy as Curl' so that I can than transform the output into a usable form.
Why do you think this is needed?
I use this all the time, and I can't see something like it already in your tool, please correct me if I'm wrong.
Solution/Idea
Take input along the lines of:
curl 'https://automationintesting.online/api/room'
-X 'GET'
-H 'Accept: /'
-H 'Sec-Fetch-Site: same-origin'
-H 'Sec-Fetch-Dest: empty'
-H 'Accept-Language: en-AU,en;q=0.9'
-H 'Sec-Fetch-Mode: cors'
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.6 Safari/605.1.15'
-H 'Accept-Encoding: gzip, deflate, br'
-H 'Referer: https://automationintesting.online/?ref=playwrightsolutions.com'
-H 'Priority: u=3, I'
and convert it to an HTTP request e.g.
GET /api/room HTTP/1.1
Host: automationintesting.online
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:142.0) Gecko/20100101 Firefox/142.0
Accept: /
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br, zstd
Referer: https://automationintesting.online/?ref=playwrightsolutions.com
Sec-GPC: 1
Alt-Used: automationintesting.online
Connection: keep-alive
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
Priority: u=4
Comments
No response