代码中发起请求
代码中发起get或post请求
1.java原生的发起请求,通过IO流进行数据的写入写出,
String strUrl = “xxx”;
try{
//建立连接
URL url = new URL(strUrl);
HttpURLConnection httpURLConnection = (HttpURLConnection)url.openConnection();
}catch (Excep...
原创
2018-12-14 09:54:15 ·
258 阅读 ·
0 评论