How to properly make a curl API call with token authentication? or Struggling with a curl API call wi

16 Replies, 1377 Views

Casual tip: Ditch curl for now and use httpie—way simpler for auth stuff.

```
http https://api.example.com/data Authorization:"Bearer MY_TOKEN"
```

If that works, you know it’s a curl quirk.

Also, maybe the API hates uppercase "Bearer"? Try lowercase "bearer". Weird, but I’ve seen it happen.

Messages In This Thread



Users browsing this thread: 1 Guest(s)