cURL / Mailing Lists / curl-library / Single Mail


Re: multiple HTTP requests/responses when using proxy authentication

From: Daniel Stenberg <>
Date: Fri, 9 Aug 2013 17:11:34 +0200 (CEST)

On Fri, 9 Aug 2013, Vclav Zeman wrote:

> I am in a situation where I am using proxy authentication but I need only
> the last response. I suspect this is true for most people who do HTTP over
> proxy. Now, it is fairly hard to distinguish the response boundaries because
> of the possibility of chunked encoding of the response and the Trailer
> header.

Why is that hard? libcurl should only deliver the (non-407) response body when
you've set it to use http proxy auth.

> It would be much nicer if libcurl could let me know about the response
> boundaries using a callback instead, so that I can discard all the response
> data I have collected from previous response at each response-start
> callback.

Sorry but I don't understand your use case. What boundaries are you talking


List admin:
Received on 2013-08-09