检查请求的url的协议与(HttpsURLConnection)、(HttpURLConnection) 匹配即可 http对应HttpURLConnection https对应HttpsURLConnection建立连接