'sendRedirect not working DefaultHTTPUtilities

DefaultHTTPUtilities utilities = new DefaultHTTPUtilities();
        
utilities.sendRedirect(response, location);``

I want to redirect External URL as response to the client, I don't want to use response.sendRedirect(location); So I used `utilities.sendRedirect() but it is not redirecting to target location.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source