Throw exception when curl has an error, and write readme usage with post method.