Struggling with curl authorization basic? How do I properly authenticate using Basic Auth in curl?

9 Replies, 834 Views

Hey everyone,

So I’m trying to use curl authorization basic to authenticate with an API, but I’m kinda stuck. I’ve been using the `-u` flag like `curl -u username:password https://example.com`, but it’s not working. Am I missing something?

I’ve also tried encoding the credentials manually and adding them to the header with `-H "Authorization: Basic <base64>"`, but still no luck.

Anyone else run into this? Is there a trick to getting curl authorization basic to work properly?

Thanks in advance!

Messages In This Thread
Struggling with curl authorization basic? How do I properly authenticate using Basic Auth in curl? - by - 08-11-2024, 12:17 AM



Users browsing this thread: 1 Guest(s)