curl-library
Re: Help needed to upload a file using libcurl.net
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 29 Jan 2015 22:38:44 +0100 (CET)
Date: Thu, 29 Jan 2015 22:38:44 +0100 (CET)
On Thu, 29 Jan 2015, Uday Kumar Tirupathi wrote:
> Easy.ReadFunction rf = new Easy.ReadFunction(OnReadData);
> easy.SetOpt(CURLoption.CURLOPT_READFUNCTION, rf);
> easy.SetOpt(CURLoption.CURLOPT_READDATA, fs);
You make a PUT here.
> curl.exe -# -C - -i -k -u USER NAME:@ PASSWORD -F filedata=@"FILE NAME"
> HTTPS SEVER URL.
... while this is a multipart formpost. Not the same things.
Added "--libcurl code.c" to your curl command line to get a good template for
your libcurl using code.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2015-01-29