不明白为什么要用读入流 应该用写出流才合理 毕竟是向服务器提交数据 而不是下载数据
BufferedReader reder = new BufferedReader(new InputStreamReader(
conn.getInputStream()));
BufferedReader reder = new BufferedReader(new InputStreamReader(
conn.getInputStream()));
2015-08-18
conn.setReadTimeout(5000);
System.out.println("conn success");
BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));
System.out.println("reader success!!");
String str;
StringBuffer sb = new StringBuffer();
while((str = reader.readLine())!= null)
{
sb.append(str);
}
System.out.println("result"+sb.toString());
System.out.println("success end");
为啥BufferedReader后面的println都输出不了了啊
举报