Script now peeks into URLs for a 301 or 302 redirect and checks location for pdf
commented out a print stmt