cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Re: Curl file upload to Django framework fails

From: VidJa Hunter <vidja.hunter_at_gmail.com>
Date: Sat, 31 Oct 2009 11:14:44 +0100

>
> Message: 1
> Date: Thu, 29 Oct 2009 12:45:41 +0100 (CET)
> From: Daniel Stenberg <daniel_at_haxx.se>
> To: the curl tool <curl-users_at_cool.haxx.se>
> Subject: Re: Curl file upload to Django framework fails
> Message-ID: <alpine.DEB.2.00.0910291244250.11612_at_tvnag.unkk.fr>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
> On Thu, 29 Oct 2009, VidJa Hunter wrote:
>
> > curl -F data=@<filename goes here> -F submit=go http://<my submit url>
>
> Then add "--trace-ascii dumpfile" and compare that data stream to the ones
> you
> do succesfully with other tools and see if you can figure out why.
>
> Your command line above is how it is supposed to be used.
>
> --
>
> / daniel.haxx.se
>
> Daniel, thanks.

> I traced it down to the infamous Expect: 100-continue header that curl
> sends. When I send an empty Expect header Curl uploads work as expected
>

I'm now using curl -H 'Expect:' -F data=@test.txt
http://localhost:22222/tracker/receiver/ > debug.html --trace-ascii d.txt as
command line.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-10-31