Updated file-in-body PUT requests to handle XML responses