Java HttpURLConnection getFollowRedirects() MethodThe getFollowRedirects() is the method of HttpURLConnection class. This method is used to indicate whether or not HTTP redirects (3xx) should be automatically followed. SyntaxReturnsIt returns true if HTTP redirects automatically followed else it returns false. Example 1Test it NowOutput: getFollowRedirects : true connecion disconnected Example 2Test it NowOutput: getFollowRedirects :true www.oracle.com getFollowRedirects :true connection disconnected Next TopicJava HttpURLConnection class |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India