Need Help with a curl GET Request – Why Isn't It Returning the Expected Data?

11 Replies, 2120 Views

Hey everyone,

So, I’m trying to make a curl get request to this API, and it’s driving me nuts. Like, I’ve double-checked the URL, added headers, and even tried with and without params, but it’s just not returning the data I expect.

Am I missing something obvious here? I mean, the curl get request *looks* fine to me, but the response is either empty or just some generic error.

Here’s what I’m using:
```bash
curl -X GET "https://api.example.com/data" -H "Authorization: Bearer token123"
```

Is it the headers? The endpoint? Or am I just cursed? 😅

Any tips or ideas would be super appreciated. Thanks in advance!

(Also, sorry if this is a dumb question—I’m still kinda new to this curl get request stuff.)

Messages In This Thread
Need Help with a curl GET Request – Why Isn't It Returning the Expected Data? - by - 09-11-2024, 07:21 AM



Users browsing this thread: 1 Guest(s)