Use URIBuilder and support relaxed SSL cert checking.