Added support for HTTP redirects in POST requests