Hardening/libcurl

**DON'T MERGE**

Orion uses libcurl to send HTTP requests.
I would only allocate (using realloc) if the currently allocated buffer is not big enough to hold the new buffer.