| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-users Mailing List Archives
Cannot upload file via http
From: Chris Snider <Chris.Snider_at_Tagtmi.com>
Date: Fri, 16 Jan 2004 10:40:17 -0600
Hi,
I'm attempting to upload a file via http. I wanted to use the "-F" option
Here is what formfind.pl shows when running formfind.pl
--- FORM report. Uses POST to URL "/cehttp/servlet/MailboxServlet"
Input: operation=UPLOAD (HIDDEN)
Input: data_format=B (RADIO)
Input: data_format=A (RADIO)
Input: mailbox_id (TEXT)
Input: batch_id (TEXT)
Select: put_flag
Input: trigger_flag (CHECKBOX)
Input: sourcefile=testfile (FILE)
Input: Submit (SUBMIT)
--- end of FORM
Here is my curl command using the -d option going directly to the
curl -b /tmp/cookietest2 -L -d operation=UPLOAD -d data_format=A -d
It generates this error
<HTML>
<HEAD><LINK rel="stylesheet" type="text/css" name="defaultstyle"
<TITLE>Servlet Response Message</TITLE></HEAD>
<H2 align=center>The following information has been returned.<H2>
<HR>
Your HTML page format is incorrect.
<HR>
</BODY></HTML>
Here is my curl command using the -F option going directly to the user form
curl -b /tmp/cookietest2 -L -F operation=UPLOAD -F data_format=A -F
It generates this error
curl: (56) Received problem in the chunky parser
Here is what I'm running
curl 7.9.8 (i686-pc-linux-gnu) libcurl 7.9.8 (OpenSSL 0.9.6b) (ipv6 enabled)
Any help with this matter would be greatly appreciated.
Thanks,
Chris
-------------------------------------------------------
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info