This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Hi, I have a question here. Please help. // login jsp page generate a wml file and get the user name(already known)/password(user type in) to re-submit to server and doing the basic authentication // the username and password need to be encode with base64 to submit this query // the encode mechaism needs to be done in the client side. (so, I won't be able to write a servlet to encoding it) // the simulator won't be able to use <meta> tag (so, I can't use this way to set the header) How can I submit the username and password with base64 encode?? Does it look like this? <?xml version="1.0" encoding="base64"?> I've been check with some rfc file, can I use UTF-16 to instead(still fail this way)? Thanks. <%@ page contentType="text/vnd.wap.wml"%> <?xml version="1.0" encoding="base64"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http:///www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card id="login" title="Login Screen"> <p align="left"> authentication test in jsp/wml<br/> Login name:<input name="LogonName" type="text" emptyok="false" value="<%= request.getRemoteUser() %>" /> Password:<input name="LogonWord" type="text" emptyok="false" value="" />