cURL / Mailing Lists / curl-library / Single Mail


Re: [PATCH] OAUTH 2.0 Bearer token support SMTP/IMAP (XOAUTH2)

From: Kyle L. Huff <>
Date: Mon, 26 Aug 2013 17:56:31 -0400

On Mon, Aug 26, 2013 at 5:53 PM, Kyle L. Huff <> wrote:
> curl --url "smtps://" --user
>;AUTH=XOAUTH2 --ssl-req --bearer ya29.AHES...EoTg4
> With the above command, despite the bearer option being specified (in
> addition to the preferred AUTH mechanism being specified in the user
> parameter) it still asks for a password -- whats more, XOAUTH2
> authentication fails no matter what you enter into the password prompt
> (yes, I wasn't positive it was pasting the bearer, so I typed it out
> the 60 character camel-case string into the prompt... several
> times...)

Well, disregard, that was my bad -- I didn't have the --user option in
quotes, and bash was probably terminating the command at the
semi-colon... That is a lame mistake.

Adding quotes, it does what I expect it to do.

Kyle L. Huff
List admin:
Received on 2013-08-26