implement checked curl downloading for known file types
Merge pull request #400 from mihalis68/checked-curl

implement checked curl downloading for known file types