cURL / Mailing Lists / curl-library / Single Mail

curl-library

Downloading & saving a file in vbnet.

From: Nico Alberti <nico_at_langhirano.it>
Date: Wed, 4 Jul 2007 14:21:40 +0200

Hi all.

I am trying to download and save a file using libcurl in vbnet, and I
am trying to tweak the easyget sample basically not setting
CURLOPT_WRITEFUNCTION and instead setting CURLOPT_WRITEDATA to the
file name I want my data downloaded to:

Ret = easy.SetOpt(CURLoption.CURLOPT_WRITEDATA, "C:\path\to\FileName")

I am not a C programmer (actually I am not a programmer at all :-) ),
and this is what I understood from the man pages, but I am probably
missing something. I could use a global variable and feed it in a
custom write function, but I would really like to use a less sloppy
approach.

Thank you in advance, and sorry for my bad English.

-- 
Ciao
Nico
Received on 2007-07-04