Having trouble with a curl POST request? Need help troubleshooting? or How do I properly format a cur

14 Replies, 1851 Views

Wow, thanks for all the tips, everyone! I tried the `-v` flag and saw the server was returning a 401—turns out I needed an API key header. *facepalm*

Added `-H "Authorization: Bearer mytoken"` and it worked!

Still curious about the `--data-binary` vs `-d` thing though. Anyone know when one’s better than the other?

Messages In This Thread



Users browsing this thread: 1 Guest(s)