using curl to get package