GET https://api.huoyisp.com/user/login?phone=18839654919&password=a41172419&type=uap HTTP/1.1
user-agent: PAFM00(Android/10) (uni.huoyisp.com/1.0.9) Weex/0.26.0 1080x2340
Host: api.huoyisp.com
Connection: Keep-Alive
Accept-Encoding: gzip
Cookie: PHPSESSID=hgv2gtplms1unihc72i727hfia
这个是请求体,也是没有响应
String urls="https://api.huoyisp.com/user/login?phone="+p.getName()+"&password="+p.getPwd()+"&type=uap";
try {
URL url=new URL(urls);
HttpURLConnection conn=(HttpURLConnection) url.openConnection();
conn.setConnectTimeout(5000);
conn.setRequestMethod("GET");
conn.setRequestProperty("user-agent", "PAFM00(Android/10) (uni.huoyisp.com/1.0.9) Weex/0.26.0 1080x2340");
conn.setRequestProperty("Host", "api.huoyisp.com");
conn.setRequestProperty("Connection", "Keep-Alive");
conn.setRequestProperty("Accept-Encoding", "gzip");
conn.setRequestProperty("Cookie", "PHPSESSID=hgv2gtplms1unihc72i727hfia");
int code=conn.getResponseCode();
} catch (IOException e) {
}