DEV Community

Ido David
Ido David

Posted on

3 1

ChatGPT: How I used it to convert http requests to cUrl

Hello fellow developers.
So today I asked ChatGPT to write a function that converts an http requests to curl commands. And I integrated this code to my sass project.
It worked flawlessly.

This is the chat:
Image description

I modified the code a little bit for better presentation.
You can see the code I merged in this PR:
Sharkio integrate cUrl PR

Image description

And this is the result:
Image description

If you want to know more about the sass I'm developing.
Check out Sharkio on Github.

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

πŸ‘₯ Ideal for solo developers, teams, and cross-company projects

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay