java http get方式请求失败

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) {
            }
 public static void main(String[] args) {
        try {
            URL url=new URL("http://www.huli667.com:81/sms/api/login?username=api-ArIGbJDn&password=a411724");
            HttpURLConnection conn=(HttpURLConnection) url.openConnection();
            conn.setConnectTimeout(5000);
            conn.setRequestMethod("GET");
            conn.setRequestProperty("User-Agent","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36");
            int code=conn.getResponseCode();
            if(code==200){
                String res = "",line="";
                InputStream in=conn.getInputStream();
                BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(in,"UTF-8"));
                while( (line = bufferedReader.readLine()) != null )
                {
                    res += line;
                }
                System.out.println(res);
                bufferedReader.close();
                in.close();
            }
            conn.disconnect();
        } catch (Exception e){
            e.printStackTrace();
        }
    }

发现用HTTP测试正常,但是用你的代码就不行,然后我加了个请求头参数,
图片说明

应该是你服务端上面的判断