Remove 512 size limit on CURL header

This updates the buffer for each header to be sized according to the header being added. 

This fixes an issue where we had a long authentication token header which was being chopped by the 512 limit.