hi all,
here is the code
----------------------------------------------------------------------------
try {
HttpsConnection con= (HttpsConnection) Connector.open("http://www.yahoo.com");
DataInputStream di = con.openDataInputStream();
SecurityInfo si= con.getSecurityInfo();
System.out.println(si.getCipherSuite() +" "+ si.getProtocolName()+ " "+ si.getProtocolVersion());
byte[] arr=new byte[(int)con.getLength()];
{
c=di.readChar();
di.readFully(arr);
System.out.print(new
String(arr));
}
con.close();
}catch(Exception e) {}
----------------------------------------------------------------------------
this code is giving me ClassCastException. The code is working fine if i establish plain HttpConnection. I am able to see the yahoo main page scripts. Is it that
www.yahoo.com page doesnt support secure connections???
What can be the probable reason?