Have you tried retrieving the Status Code (HTTP_QUERY_STATUS_CODE - 19) and then if it's a redirection status retrieving the Status Text (HTTP_QUERY_STATUS_TEXT - 20). ? I believe that the Status Text will contain the redirect URL.