I want to access to the service web via my PhoneGap/android application with xmlhttprequest, but the code below returns \"Status is 401\".
var request = new XML
if your website is created by prestashop, so to access the webservice using Xmlhttprequest, the request.open should be like this:
request.open("GET","http://www.mysite.fr/api/customes/2?PHP_AUTH_USER="+PHP_AUTH_USER+"&ws_key="+ws_key,true);
with: PHP_AUTH_USER="" and ws_ke=key_generated_by_the_webservice