java中的HttpURLConnection类如何禁止重定向获取Cookie信息

日期:2016-11-06 14:36:03 人气:1

java中的HttpURLConnection类如何禁止重定向获取Cookie信息

只有禁止 static void setFollowRedirects(boolean set)Sets whether HTTP redirects (requests with response code 3xx) should be automatically followed by this class.
    A+
热门评论