cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: HTTP PUT and chunked transfer

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 21 Dec 2004 21:15:52 +0100 (CET)

On Tue, 21 Dec 2004, Andreas Harth wrote:

> how can I enable chunked transfer in combination with HTTP PUT?
>
> I do a
>
> curl filename.nt $i
> http://localhost:8180/yars/yars?q=\(?,?,?,file:///filename.nt\) -H
> "Content-Type: application/rdf+n3" -H "Transfer-Encoding: chunked"
>
> The header is set, but the content still arrives "unchunked" in my servlet.

What version are you using?

I just tried this:

    curl -T log/file218 -H "Transfer-Encoding: chunked" [URL]

... and it gets sent chunked just fine. Of course, it seems rather silly to
send this kind of data chunked when the file size is known... :-)

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-12-21