Hi All,

[code]
...

function onSubmit() {

    var req = new XMLHttpRequest();

    req.open("GET", "http://localhost:4466/protected_resource/";,
false);
    req.send();

    /* assuming for now, that the request to the resource will
redirect me to the login page */

    doAuth(req);

    view.alert(req.responseText);
}

function doAuth(req) {
    /* send POST request to j_security_check */
    req.open("POST", "http://localhost:4466/j_security_check";, false);
    req.send("&j_username=dummy" + "&j_password=dummy");
}


...
[/code]

It works in linux, and I can see the page displaying the protected
resource in the alert window. However, the same code in windows, still
stays on the authentication page! And, I see the contents of the
login.jsp page in the alert window.

Any pointers to resolve the issue will be greatly appreciated.

Thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Desktop Developer Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-desktop-developer?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to