curl-library
Re: IMAP and Usernames
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 24 Mar 2012 19:45:58 +0100 (CET)
Date: Sat, 24 Mar 2012 19:45:58 +0100 (CET)
On Sat, 24 Mar 2012, Steve Holme wrote:
> Whilst in IMAP4 the equivalent needs to be:
>
> B LOGIN "Steve Holme" <password>
>
> When running curl or even my own application I can cope with this by passing
> in a string that simply contains the quote marks.
>
> However, should libcurl detect this and escape the username itself or is it
> outside its responsibility?
I think libcurl should detect and escape, so that the same rules apply to user
names for libcurl's API independent of protocol.
But your example made me curious. Is there other letters besides space (ascii
32) that need quoting? What if you want to use the actuable quote letter (")
in a user name?
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2012-03-24