cURL / Mailing Lists / curl-library / Single Mail


Re: IMAP and Usernames

From: Daniel Stenberg <>
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?

List admin:
Received on 2012-03-24