I'm looking at Stripe's cURL example for getting info on an event.
They have me do:
curl https://api.stripe.com/v1/events/evt_123 \
-u sk_test_somekey:
The documentation for cURL states that -u
does USER:PASSWORD
.
When I tried sending this as -d
or as a query ?
, Stripe's API says that I'm missing a header. This doesn't seem right.
I don't understand the lack of password after the username, either. If I send that cURL without the :
, I am prompted for a password. Hitting enter (no characters inputted), gets me the expected response.
So, what exactly is -u
doing so I can imitate this call in my code?