You can do the DIME encapsulation yourself, and just hand it off as a prepackaged tur.. chunk to libcurl.

In other words, it boils down to first generating the binary DIME data. Then, set the...