Currently I have the basics to get a webpage, but I need the results to get put into a string. The webpage is only a line of text.
Currently:
Code:#include <stdio.h> #include <curl/curl.h> int main() { CURL *curl; curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_URL, "localhost"); curl_easy_perform(curl); curl_easy_cleanup(curl); } return 0; }