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);

}

[975 byte] By [rizzua] at [2007-10-2 20:27:51]
# 1
Once you connect to the other site what url is in the IE browser?
jschella at 2007-7-13 23:10:45 > top of Java-index,Core,Core APIs...
# 2

As for the cricinfo example, when I connect to that using my browser I get a page that starts out

"Page Not Found

The page you requested was not found..."

So presumably it's sending a 404 response and your code responds as if the page was not found. Which it wasn't.

As for the yahoo examples, your browser is probably handling cookies and redirects and perhaps other HTTP features that your basic code isn't handling.

DrClapa at 2007-7-13 23:10:45 > top of Java-index,Core,Core APIs...