Making rover script HTTP/HTTPS agnostic