Use cURL extension if available, give meaningful exception message if neither cURL nor fopen wrappers are available.