control redirects

Set 'redirects' get-parameter to 'off' or 'false' to disable following redirects or to an integer to cap the number of redirects