java如何运行curl命令行

78 2024-03-11 02:58

try { Process process = Runtime.getRuntime().exec("curl e.com"); BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream())); String line; while ((line = reader.readLine()) != null) { System.out.println(line); } } catch (IOException e) { e.printStackTrace(); }
顶一下
(0)
0%
踩一下
(0)
0%
相关评论
我要评论
点击我更换图片