HI Fabian,
On 29/09/14 09:01, Fabian Cretton wrote:
request.open(method, _url, true);
if(method=="PUT"||method=="POST")request.setRequestHeader("Content-Type",mimetype);
if(method=="GET")request.setRequestHeader("Accept",mimetype);
request.setRequestHeader("Authorization", "Basic " +
Base64.encode("fabian:fabian"));
request.send( data );
I think the Base64 I found here [1] is correct, and i also tried with a
btoa("fabian:fabian") with the same result.
I'm not an js expert, I'm neither sure is we use base64 encoding in out
Basic Auth, but have you tried something like:
request.setRequestHeader(
"Authorization",
"Basic "+window.btoa(user+':'+pass));
Nevertheless, my SPARQL select call does return with an error and this
message: "(Unknown or not implmented)"
First check in the query ui that the query is valid and deliver the
expected results. In Marmotta 3.3.0 we're working on a huge batch of
improvements for SPARQL.
If I don't add the new line to set the "Authorization" header, then I
get the following message as expected: "(Unauthorized)"
Well, that, expected.
For allowing you to actually work, what about changing
'security.enabled' to 'false' in the meantime?
Cheers,
--
Sergio Fernández
Partner Technology Manager
Redlink GmbH
m: +43 660 2747 925
e: sergio.fernan...@redlink.co
w: http://redlink.co