cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: [PATCH] Colon in username

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 29 Sep 2008 07:59:00 +0200 (CEST)

On Sun, 28 Sep 2008, Igor Novoseltsev wrote:

> Get me in details of your idea.
>
> 1. What is the set of arguments needed in order to set byte array?
> I thought the null-terminated string of percent encoding chars is
> enough.

I guess I wasn't clear: my point was to make sure the new *API* we introduce
implies as few restrictions as possible on the user name and passwords. By
assuming that the strings are URL encoded, many applications can even get away
without encoding them at all (unless they use '%' or zeroes in the strings).

As a first step, we don't actually change the internals to support zeroes in
the strings, we just introduce an API that _can_ support them without us
having to change that again. I find the work to make it this way very small
and easy.

Then, when someone comes up with a case where the binary zeroes are needed in
the future, we have the foundation already in place and there will be no need
for ABI/API breaks.

-- 
  / daniel.haxx.se
Received on 2008-09-29