check forwarding

this script checks, whether a URL will be forwarded to another and if it
contains some specific data.