服务器是Linux,使用SecureCRT是可以连接通的。
代码如下:
URL url = null;
URLConnection connection = null;
filePath = "/export/home/sysm/ftproot/ebc/exportCounter/counter_20111103072421663145.xml";
url = new URL("http://10.147.212.70/" + filePath);
connection = url.openConnection();
input = connection.getInputStream();得到connection过后,通过它获取inputStream是失败的。请问是什么原因。谢谢