HttpURLConnection.setFollowRedirects(true);
will just cause your http URL connections to follow redirects. How trivial. That's life outside of Java programming: grey, unexciting, boring.
But throw Java in the picture and things start - to - happen, man! I could put it no better than in this helpful words by mykong:
"The
HttpURLConnection
‘s follow redirect is just an
indicator, in fact it won’t help you to do the 'real' http redirection,
you still need to handle it manually."Read this sentence over and over. Savor its absurdist, surreal quality. Feel your mind slowly slipping away. Turn on. Tune in. Drop out.
That's Java coding, for you, my dear.
No comments:
Post a Comment