What I mean is, if I go to "www.yahoo.com/thispage", and yahoo has set up a filter to redirect /thispage to /thatpage. So whenever someone goes to /thispage, s/he will land on /thatpage.
If I use httplib/requests/urllib, will it know that there was a redirection? What error pages?
Some sites redirect user to /errorpage whenever the page cannot be found.
To prevent requests from following redirects use:
r = requests.get('http://www.yahoo.com/thispage', allow_redirects=False)
If it is in indeed a redirect, you can check the redirect target location in r.headers['location'].
When I use python requests to check a site, if the site redirects me to another page, will I know?