Re: How to access user:password in servlet

2009-11-23 Thread Thierry Boileau
Hello Macel, from what I see in the code, these data are not taken into account by HTTP. After having a look at the HTTP and URI specifications, it appears that HTTP relies on the definition of the host term ([1] and [2]) as specified in the URI spec ([3]) which does not take into account the

Re: How to access user:password in servlet

2009-11-23 Thread Stephan Koops
Hi Marcel, do you tried to observer the TCP/IP traffic directly? Are the credentials available there? best regards Stephan Macel Ruff schrieb: Hi, I want to transfer user and password credentials: var loginName = jack; var password = 1122; var xhr = new XMLHttpRequest();

Re: How to access user:password in servlet

2009-11-23 Thread Macel Ruff
Hi, thanks for taking care. As xMLHttpRequest.open(GET, link, async, loginName, password); explicitely supports it, I had assumed it is the standard Ajax way to transfer the credentials. But as it is send in clear text in the URL (and deprecated according to you links) I now prefer to send

How to access user:password in servlet

2009-11-22 Thread Macel Ruff
Hi, I want to transfer user and password credentials: var loginName = jack; var password = 1122; var xhr = new XMLHttpRequest(); xhr.open(GET, link, async, loginName, password); In firebug I can see the URL send: jack:1...@localhost but I have found no way to access it in my restlet servlet