How Do You Properly Set and Manage curl Headers in Your Requests? or What Are the Best Practices for

14 Replies, 1680 Views

Whoa, thanks for all the tips! Didn’t realize whitespace could break the headers. Tried `-v` and saw the server was actually getting `Content-Type:text/plain` even though I set JSON. Fixed the spacing and it worked!

Still struggling with redirects though—gonna test `--location-trusted`.

And httpie looks slick, definitely checking that out. Y’all are lifesavers!

Messages In This Thread



Users browsing this thread: 1 Guest(s)