cURL / Mailing Lists / curl-users / Single Mail

curl-users

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

From: Steven R. Olson <devnull_at_socal.rr.com>
Date: Thu, 3 Jul 2003 23:40:39 -0700

Just a thought, does JRun use chroot? You may have root access to a limited
filesystem.

-----Original Message-----
From: curl-users-admin_at_lists.sourceforge.net
[mailto:curl-users-admin_at_lists.sourceforge.net]On Behalf Of Paul Jacobs
Sent: Monday, June 30, 2003 12:57 AM
To: curl-users_at_lists.sourceforge.net
Subject: ERROR - curl: (26) failed creating formpost data

Hi All

       I have an issue at the moment when trying to run Curl. I have built a
Java application that runs on an AIX box, that is designed to automatically
send files across the internet using the HTTPS protocol.
The application runs using a JRun server that is running as Root on the AIX
box.
The system logs each command it makes to the OS and as such I am able to
tell what commands it is submitting.
When it goes to POST a file to another URL it uses the following command

/usr/local/bin/curl -F username=loadtest2 -F password=loadtest2 -F
"test13.xml"=@"/rxx/servers/RXX/rxx-app/WEB-INF/docs/transfer/OUTloadtest2/t
est13.xml"
<Destination URL>

loadtest2 is the same of the test user I am using.

The system then logs the following error.....
              curl: (26) failed creating form post data
and of course the file is never received by the destination URL.

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.

Thanks
Paul J

_________________________________________________________________
Hotmail is now available on Australian mobile phones. Go to
http://ninemsn.com.au/mobilecentral/signup.asp

-------------------------------------------------------
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

-------------------------------------------------------
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-07-04