| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Re: Help with partial file upload - result 18 - (0 bytes)
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 31 Oct 2006 15:32:09 -0800
On Tue, Oct 31, 2006 at 03:50:54PM -0700, Leon Vanderploeg wrote:
[...]
> size_t read_callback(void *ptr, size_t size, size_t nmemb, void *stream)
[...]
> hd_src = fopen(LOCAL_FILE, "rb");
You're opening the file with fopen() but using read() to read from it. That's
> hd = open(LOCAL_FILE, O_RDONLY) ;
While we're here, you can use lstat() here and avoid the superfluous
> curl_easy_setopt(curl, CURLOPT_USERPWD, "simple_at_vaultnow.com:s1mpl3");
I hope this isn't your real password, or it is now very simple for
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2006-11-01 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info