libcurl-video-tutorials icon indicating copy to clipboard operation
libcurl-video-tutorials copied to clipboard

Suggestion: feeding received data to other libraries such as expat

Open gevaerts opened this issue 5 years ago • 1 comments
trafficstars

The expat xml library (https://github.com/libexpat/libexpat) wants its data in a way that is well matched with the curl API. This (or some other similar library) may be worth showing.

The libcurl "xmlstream" example does exactly this.

gevaerts avatar Dec 04 '19 10:12 gevaerts

Agreed. Shows real-world use of the write callback other than just saving it like in the "receive data" episode.

The xmlstream example: https://curl.haxx.se/libcurl/c/xmlstream.html

bagder avatar Dec 04 '19 10:12 bagder