Add callback functions for curl to read body and headers + abort on large body