cURL / Mailing Lists / curl-library / Single Mail


Re: stop curl, stop!

From: Daniel Stenberg <>
Date: Wed, 2 Apr 2014 08:29:09 +0200 (CEST)

On Tue, 1 Apr 2014, wrote:

> It seems like it does--sort of. It seems as though the problem with this
> approach is, as far as I can tell, none of the callbacks have any idea
> whether there's more data to read from the server... i.e. if the server
> you're uploading to has a response that's longer than the buffer the
> callback was handed to read it, you will not be able to read the whole
> response (this is often not interesting, but sometimes it might be).

I don't understand. If you indeed want to stop the transfer, then no you won't
get any more data. If you actually want to get the full response then I
suggest you don't stop the transfer until you've gotten the amount you want.

What am I missing?

> As it happens, I'm opening the socket myself (In actuality I'm talking over
> a Unix domain socket)... How does curl behave if I simply close the socket?

Which socket are you talking about here?

List admin:
Received on 2014-04-02