add support to download with liburl2 when ssl is enabled