cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: cURL and streams?!

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 21 May 2002 16:03:54 +0200 (MET DST)

On Tue, 21 May 2002, Andreas Olsson wrote:

> Is it possible to use streams as source when performing a multipart post?

Well, the protocol itself supports this AFAIK. libcurl does not, however, as
it doesn't support chunked-encoded transfers in that direction, so thus it
must tell the remote server the size of the upload prior to the actual
upload. Therefore it needs to have access to the file (or at least know the
size of the stream beforehand).

But I guess that using PUT would make more sense if you wanna upload a
stream.

> Is it possible to get the respons in a stream?

You always get the response in a callback, "streamish". It makes no
difference if you get a static remote file or if you get a remote stream.

I hope this helps!

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
Received on 2002-05-21