cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Reading results after a POST

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 31 Jul 2002 10:45:50 +0200 (MET DST)

On Tue, 30 Jul 2002, Sergio Juan wrote:

> I have an application that sends files to a WebServer using a POST from
> libcurl. I would like to get in the response of this POST action) the
> number of the files effectively received (as it is a little buggy and we
> suspect on our JSPs) to check it is the same that the number we send. It
> must be in the same connection because that JSP is a little appart of the
> application and doesn't know which client is calling him, so it can't wait
> for a GET action to return the value. Using curl I get the client to enter
> in a function where it could read it, but it just receives 3 bytes in the
> stream, so it fails...

I don't quite understand your problem here. You POST to the site, so why
don't you just set a write callback and receive all the response data into it
and do whatever you want with it?

-- 
 Daniel Stenberg -- curl related mails on curl related mailing lists please
-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
Received on 2002-07-31