Fix possible notice.

Suggested by @lucien144.
Improve curl error handling.

Suggested by @rokerkony.
Add common problems to readme file.