little fix in the request function (redirection; user agent)