Fixing the HTTPS API calling.