cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Read Text file from the web

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 10 Oct 2008 13:22:02 +0200 (CEST)

On Fri, 10 Oct 2008, Demetris Zavorotnichenko wrote:

> The reason I'm doing all this is that currently do a system(); function and
> use wget to download the file and read it from my application, but I need
> this to be allot faster since it takes about 3 - 8 seconds to do that and
> slows down my application.
>
> Would this be faster with the use of libcurl?

It depends on what it is that takes all that time when using wget.

> Could someone please tell me how I would do this ?

Here's one example of how to do it:

         http://curl.haxx.se/lxr/source/docs/examples/getinmemory.c

-- 
  / daniel.haxx.se
Received on 2008-10-10