/
githubmirror
/
curl
Обзор
Документация
Войти
/
githubmirror
/
curl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/data/test953
54 строки
932 B
Daniel Stenberg
tests: use %b64[] instead of "raw" base64
14 апр 2026, 17:18
Не верифицирован
14 апр 2026, 17:18
0567e72
Код
Авторство
О чём код?
<?xml version="1.0" encoding="US-ASCII"?> <testcase> <info> <keywords> SMTP SASL SASL AUTH PLAIN RFC4616 RFC4954 </keywords> </info> # Server-side <reply> <servercmd> AUTH PLAIN REPLY AUTH 334 PLAIN supported REPLY %b64[ursel%00kurt%00xipj3plmq]b64% 235 Authenticated </servercmd> </reply> # Client-side <client> <server> smtp </server> <name> SMTP plain authentication with alternative authorization identity </name> <stdin crlf="yes"> mail body </stdin> <command> smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -u kurt:xipj3plmq --sasl-authzid ursel -T - </command> </client> # Verify data after the test has been "shot" <verify> <protocol crlf="yes"> EHLO %TESTNUMBER AUTH PLAIN %b64[ursel%00kurt%00xipj3plmq]b64% MAIL FROM:%LTsender@example.com%GT RCPT TO:%LTrecipient@example.com%GT DATA QUIT </protocol> <upload crlf="yes"> mail body . </upload> </verify> </testcase>