I wanna know that how we can identify whether a page is redirecting to some other web page or not?
I’m using URLConnection class of java.
One way that i know is, to check the headerfield ‘Location’ of the connection established.
But i’m not getting the solution 🙁
Plz assist.
Start using HttpClient and stop worrying about redirects.
Read here for more details.