cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: ERROR - curl: (26) failed creating formpost data

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 30 Jun 2003 19:40:52 +0200 (CEST)

On Mon, 30 Jun 2003, Paul Jacobs wrote:

> After viewing the CURL website I believe this error relates to the inability
> of the program to read the file listed in the CURL command (extract from
> CURL website)
>
> CURLE_READ_ERROR (26)
> There was a problem reading a local file or an error
> returned by the read call-back.

>
> Usually at this point I would say the error is related to permissions on the
> server, but when I run the Curl command from the command line (logged in as
> Root), it works fine!!!!!! Yet the JRun server along with the Java
> application running on it, also run as Root and when it submits the command,
> it fails!
>
> I can't understand why this is happening!!!! Has anyone else experienced
> this issue. I can't figure out what is going on.

I can confirm that the only point where CURLE_READ_ERROR can be returned
within the formdata code, is when the file you want to upload can't be opened
(lib/formdata.c:1254).

I suggest you strace the curl command to find out details, or similar.

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
Received on 2003-06-30