Optional host & port, retry on failure of REST request