Hey everyone,
So I’m trying to use curl basic auth to hit an API, but I’m kinda stuck. I’ve been passing the credentials like this:
```
curl -u username:password https://example.com
```
But I keep getting a 401 error. Am I missing something?
Also, does it matter if the password has special chars? Like, do I need to escape them or something?
I’ve googled around, but most examples are super basic, and I’m not sure if I’m doing it right. Any tips or tricks for curl basic auth would be awesome!
Thanks in advance, y’all! 🙏
So I’m trying to use curl basic auth to hit an API, but I’m kinda stuck. I’ve been passing the credentials like this:
```
curl -u username:password https://example.com
```
But I keep getting a 401 error. Am I missing something?
Also, does it matter if the password has special chars? Like, do I need to escape them or something?
I’ve googled around, but most examples are super basic, and I’m not sure if I’m doing it right. Any tips or tricks for curl basic auth would be awesome!
Thanks in advance, y’all! 🙏
