curl-library
RE: Read Text file from the web
Date: Fri, 10 Oct 2008 14:30:48 +0300
I'm using a GPRS connection for the web. So it's pretty slow.
The thing is that I use a g_timeout_add loop to make this work, so when it
gets to the point of wget then when it finishes the loop tries to keep up
and loops pretty fast making more wget commands which stalls my system.
-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Daniel Stenberg
Sent: Friday, October 10, 2008 2:22 PM
To: libcurl development
Subject: Re: Read Text file from the web
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.seReceived on 2008-10-10