Not connecting to internet
I am able to connect to yahoo site but not able to connect to other cric info site.. What should I do to connect to cricinfo site..But If I use same URL it connects through the IE. With the below code I am able to connect to http://www.yahoo.com but not to http://www.mail.yahoo.com what makes the difference?
Your help is appreciated.
String protocol = "http";
String cricinfo = "http://usa.cricinfo.com/db/NEW/LIVE/frames/IND_WI_ODI1_18MAY2006.html";
String yahoo = "http://www.yahoo.com";
String proxy = "myproxy.com";
int proxyPort = -1;
URL url = new URL(protocol, proxy, -1, yahoo);
URLConnection conn = url.openConnection();
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String inputString = null;
while ((inputString = bufferedReader.readLine()) != null) {
System.out.println(inputString);
}

