libcurl-http接收数据

源码目录

docs/example/

 

getinmemory.c //接收数据

 

/* send all data to this function */
curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, WriteMemoryCallback);

/* we pass our 'chunk' struct to the callback function */
curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *)&chunk);

 

 

posted @ 2019-12-10 10:02  gluck-mark  阅读(659)  评论(0)    收藏  举报