DEV Community

Discussion on: Quick API Debugging Tip

Collapse
 
joelmccracken profile image
Joel McCracken

This is nice. For more advanced options, you can also use curl directly on the command line (which is more flexible)

Collapse
 
theringleman profile image
Sam Ringleman

That is a great idea! Thanks for sharing this. I have not taken the dive into the full cURL CLI.

Do you have any good tips that you can recommend?

Outside of just the documentation of course. I am curious if there is a specific command that you find useful.

Collapse
 
joelmccracken profile image
Joel McCracken

the -k option lets you ignore ssl cert issues, which is handy for local development.

curl -v is really handy for debugging things. You can use it to get more info about a request, which often is not available in dev tools.

You can combine it with jq in order to do some processing on json that goes in to/comes out of a request/response.

I should write a blog post about it, some things are a bit trickier/would probably be helpful for someone to have thorough examples.

Thread Thread
 
theringleman profile image
Sam Ringleman

I would love to read that post.

Thank you for taking your time to share these though. I greatly appreciate it!