cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Prevent curl to trigger progressbar on 302 redirections

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 11 Jan 2013 21:08:29 +0100

On Fri, Jan 11, 2013 at 09:38:13AM +0100, Alexandre Filgueira wrote:
> Sorry, I have an error on my writting:
> "to now trigger" I ment to say "to not trigger"
>
> 2013/1/11 Alexandre Filgueira <alexfilgueira_at_cinnarch.com>
>
> Content-Length: 369
> My guess this is the difference. The one redirect has a body, and the
> other doesn't:
>
>
> I see... so, if I want to bypass that to just show one progressbar, could I
> check if it is a redirection first, and knowing that tell curl to now
> trigger the progressbar when content-length > 0? 

Sure, that would work, at the cost of another 5 or so round-trips.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-01-11