Issue #1962358 by grom358: Replaced deprecated function calls
Issue #1962358 by grom358: Replaced use of  with Request object