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

18 Replies, 925 Views

OMG THANK YOU ALL! The `-v` flag saved me—turns out the API was redirecting to a login page.

Added `-L` to follow redirects and it worked! Also, the `User-Agent` trick was golden.

Still weird it works in-browser but not raw http curl tho. 🤔 Anyways, crisis averted!

Messages In This Thread



Users browsing this thread: 1 Guest(s)