cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: download a file like in popup-dialog?

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 4 May 2011 14:55:32 -0700

On Wed, May 04, 2011 at 11:18:54PM +0200, Alexander Wieck wrote:
> i'm looking for a solution to download a file from an asp-site.
> With Firefox i press OK in the Download-Dialog-Popup and get the file, but with the curl-examples like ftpget.c or getinmemory.c i don't get the file.

Um, did you read the code? getinmemory.c downloads the file and puts it--get
this--into memory, not onto disk. ftpfile.c puts the data into a file
called curl.tar.gz in the current directory. Naturally, neither example
will work unless you change the URL in the code. If you want a GUI dialog
to show up as the file is downloaded, that's certainly possible as well.
smooth-gtk-thread.c would be a good example to start from.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-05