Need Help with curl basic auth: How Do I Pass Credentials Correctly?

8 Replies, 2191 Views

Hey y’all, thanks for all the replies! I tried the `-v` flag, and it looks like the server is rejecting my credentials even though they’re correct. Maybe it’s a server-side issue like some of you mentioned.

I also tried Postman, and it worked fine there, so it’s definitely something with my curl command. I’ll try the `--anyauth` flag next and see if that helps.

Quick question: if the API uses OAuth instead of basic auth, would curl still work with `-u`? Or do I need to switch to something else?

Thanks again, you guys are awesome! 🙌

Messages In This Thread



Users browsing this thread: 1 Guest(s)