cURL / Mailing Lists / curl-library / Single Mail


Re: Re: IP addresses of redirected servers

From: Bin Wang <>
Date: Tue, 22 Feb 2011 15:11:55 -0800

OK, your opinion is understood.

Thanks for all the suggestions.


On Tue, Feb 22, 2011 at 2:43 PM, Daniel Stenberg <> wrote:

> On Tue, 22 Feb 2011, wrote:
> Our application has been relying on libcurl for URL redirection. We would
>> need to rewrite a large portion of the code to handle URL redirection
>> manually.
> Why? It doesn't make any sense to me. Write your own function called kurl()
> that does the job and that returns the error code from the last libcurl
> call. You wouldn't have to change any logic in your application.
> "kurl" would then just be a loop doing multiple libcurl calls, and as I
> already showed you libcurl already does all the grunt work and it provides
> you with all the info you asked for.
> Daniel, do you see a problem with extending libcurl in either of the
>> approach I suggested?
> Yes. Because it's pointless when we already offer several ways to extract
> the information you want.
> The impression I get is that you reject suggestions presented here because
> they don't fit the way you already set out to have this working before you
> asked.
> I don't really mean: "I don't want to change my code, so I will just mess
>> around with libcurl". It is just that the extension to libcurl seems pretty
>> simple. So I suggested it.
> Sure, it's simple to add since all the info is already there, but that's
> not a very good reason to add yet another feature if you ask me...
> You need to produce better reasons and arguments for your case. Or perhaps
> find others who also think its a good idea so that I'd find myself in a
> minority...
> --
> /
> -------------------------------------------------------------------
> List admin:
> Etiquette:

List admin:
Received on 2011-02-23