private String getGoogleToken(String userName, String passwd) {
String first = "Email="+userName+"&Passwd="+passwd+"&PersistentCookie=false&source=googletalk";
try {
HttpsConnection c = (HttpsConnection) Connector.open("https://www.google.com:443/accounts/ClientAuth?"+first);
log.addMessage("Connecting to www.google.com");
DataInputStream dis = c.openDataInputStream();
String str = readLine(dis);
String SID = "";
String LSID = "";
if(str.startsWith("SID=")&&!ended) {
SID = str.substring(4, str.length());