P
P
Philip2013-06-18 22:44:08
Programming
Philip, 2013-06-18 22:44:08

Working with CURL, how?

Good evening, now you need to convert CURLcode to an array to process the page code and select the necessary elements. The curl_easy_perfom function returns the page code immediately to the console, how can I make it so that it is first written to an array, and then displayed through standard C ++ methods?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nochkin, 2013-06-19
@RussDragon

I would not advise you to directly connect and take data, since many goodies like zlib, keep-alive, and so on are lost.
And for curl, you need to receive data through a callback in this case.
Here is an example: curl.haxx.se/libcurl/c/getinmemory.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question