Thread: cURL webpage download.

  1. #1
    Registered User daveoffy's Avatar
    Join Date
    Feb 2010
    Location
    Michigan
    Posts
    4

    cURL webpage download.

    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;
    }

  2. #2
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675
    Perhaps you need to read and follow the tutorial?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 09-30-2005, 02:51 AM
  2. Downloading a webpage onto the disk?
    By Edin in forum Windows Programming
    Replies: 3
    Last Post: 11-23-2004, 01:37 AM
  3. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM