CQE-2446 verify url before download

Change-Id: Id645c8b4edd4d489bbab1fc3037273a091802d9f
Reviewed-on: http://review.couchbase.org/42489
Reviewed-by: Thuan Nguyen <soccon@gmail.com>
Tested-by: Thuan Nguyen <soccon@gmail.com>