cURL webpage download.

This is a discussion on cURL webpage download. within the C Programming forums, part of the General Programming Boards category; Currently I have the basics to get a webpage, but I need the results to get put into a string. ...

  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
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,650
    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, 12:37 AM
  3. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21