cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Difficulty uploading files via http

From: Tim Post <echo_at_echoreply.us>
Date: Mon, 05 May 2008 16:26:27 +0800

On Mon, 2008-05-05 at 09:47 +0200, Daniel Stenberg wrote:
> You forgot the magic @ letter! Try:
> curl -F uploaded_file=@/home/tpost/desktop/patch -F go=Upload [url]

I sure did. Originally I included it, lighttpd seems to be the root of
the issue. I began to wonder if the @ was just a typo in the
documentation :)

> This a broken http server (and yes lighttpd has been reported to be this
> broken in the past), you better try the same operation without the Expect:
> header:
> curl -H Expect: -F uploaded_file=@/home/tpost/desktop/patch -F go=Upload [url]

That finally worked. My copy of lighttpd is as stale as my copy of curl.
I'm no HTTP guru, this would have taken me days to diagnose without
help.

Thank you for a quick and very helpful reply, you saved me quite a bit
of frustration!

Cheers,
--Tim

-- 
Monkey + Typewriter = Echoreply ( http://echoreply.us )
Received on 2008-05-05