I've installed LearningLocker and now using Firefox's POSTER addon to test the REST calls to it.
Calling
http://mytest.com/data/xAPI/about (
mytest.com is an internal URL we use) gives me correct response of:
{"X-Experience-API-Version":"1.0.1","version":["1.0.1"]}
(this /about call doesn't require authentication)
But now when trying to push a statement into the LRS, it requires authentication:
- Logging into LRS I obtain the UserName + Password on the "xAPI statements" settings page (lrs/54c194bb6446427c158b4567/endpoint )
- I use these credentials in the "User Auth" inputs in Poster (Please see screenshot)
- No values in "Headers" & Parameters tabs
Now I get response:
{"error":true,"message":"Unauthorized request."}
http://postimg.org/image/6gj8da3j7/
Some info about VirtualHost entry here:
http://docs.learninglocker.net/statements/
but putting that line into the VirtualHosts entry on apache site config file and POSTing the same data returns new error:
{"error":true,"message":["`auth` is not a valid string with base64 contents in headers. "]}
Any help would be greatly appreciated,
Many thanks
Gert