Changed to use api_get_request instead of plain http request

That way the prefix is automatically added, and get_root will work on Jenkins boxes where there is a prefix.