using a single curl handle instead of recreating it on every request
+ added .editorconfig to make indentation using 4 spaces