[#1] Retry on network failure
[#1] Add CurlException
Add timeout, and fix separation of options and headers