I have an AWS based program that downloads JSON formatted messages. However, AWS returned the following HTML message for one request: ~~~ 307 Temporary Redirect Temporary Redirect The document has moved here . Apache/2.4.29 (Ubuntu) Server at www.openml.org Port 80 ~~~ which I decoded using an Ada program from ~~~ https://franckbehaghel.eu/programming/ada/ada-web-server-example/ -- http_req.php ~~~ I can't figure out how to implement the redirection to ~~~ Apache/2.4.29 (Ubuntu) Server at www.openml.org Port 80 ~~~ Any advice will be greatly appreciated