When testing the WebAPI authentication in the SPA template, I can create a user, sign in, and retrieve sample to-do's using this url from Google Chrome:
http://myhost.com:49688/api/TodoList
When I try to retrieve the todo's using curl or via Fiddler, I get back HTTP/1.1 401 Unauthorized status.
The curl command I am using:
curl --request GET -H "Content-Type: application/json" http://uname:pass@myhost.com:49688/api/TodoList
Fiddler parsed query:
GET http://myhost.com:49688/api/TodoList
Request Headers:
User-Agent: Fiddler
Host: localhost:49688
Authorization: Basic YWxpYmVyc29uOnRlc3R0ZXN0
Why am I receiving back status 401 if I am providing the username and password? (I substituted myhost for localhost)