How do I properly send a POST request in curl? or What’s the correct way to make a POST request in cu

16 Replies, 1250 Views

Wow, thanks everyone! Didn’t realize how much headers mattered. Tried the JSON example with `Content-Type` and it worked!

Still getting a 401 though—guess I need auth. Anyone know how to add basic auth to a post request in curl? Like `-u user:pass`?

Also, `-v` was a game-changer for debugging. Appreciate the tips!

Messages In This Thread



Users browsing this thread: 1 Guest(s)