this works in applet!
try{
URL testurl=new URL("http://www.csdn.net/expert/postnews.asp?title=");
URLConnection testconn=testurl.openConnection();
testconn.connect();
BufferedInputStream bis=new BufferedInputStream(testconn.getInputStream());
}
catch(...)
try{
URL testurl=new URL("http://www.csdn.net/expert/postnews.asp?title=");
URLConnection testconn=testurl.openConnection();
testconn.connect();
BufferedInputStream bis=new BufferedInputStream(testconn.getInputStream());
}
catch(...)
我给个包你,很有用的。