cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: uploading HTTP PUT

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 25 Jul 2002 18:46:56 +0200 (MET DST)

On Mon, 1 Jul 2002, Danny Guindi wrote:

> hd = open("C:\\test.txt", O_RDONLY);
> fstat(hd, &file_info);
> close(hd);
>
> hd_src = fopen("C:\\test.txt", "rb");
> if (!hd_src)
> {
> fcgi.Out() << "Error : " << errno << "<BR>" << endl;
> return false;
> }

[parts of source cut off]

> It prints out an error indicating that the file to open does not exist!

That output does not come from libcurl, as it won't try to open any file.

> Can anyone help me?

What about just single-stepping through your code with a debugger to the
point where the error message is written?

-- 
  Cheers,
  Daniel Stenberg
-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing 
real-time communications platform! Don't just IM. Build it in! 
http://www.jabber.com/osdn/xim
Received on 2002-07-25