How can I debug HTTP curl requests when the response is empty? or What's the best way to handle authe

18 Replies, 945 Views

403? Classic. Some sites block http curl by default. Try mimicking a browser:

```
curl -X GET \
-H "User-Agent: Mozilla/5.0" \
-H "Accept: text/html" \
https://example.com/api/data
```

If it works in-browser but not http curl, it’s 100% a headers/UA issue.

Messages In This Thread



Users browsing this thread: 1 Guest(s)