Not entirely sure if this will be possible, but libcurl does support a bunch of callbacks.
Not entirely sure if this will be possible, but libcurl does support a bunch of callbacks.