Fix. Throw appropriate exception.
Use CURL for download.