tobotras: (Default)
tobotras ([personal profile] tobotras) wrote2013-03-17 10:38 am

Microsoft и basic http authentication

Хозяйке на заметку. Мало ли, кому ещё понадобится.

RFC-2617 гласит: клеим логин, двоеточие, password, всё это в base64 и в HTTP заголовок. Что сделал MS? Логин и пароль в UTF-16. Ну, чёрт с вами, ладно, интернационализация. Так двоеточие тоже, блин, должно быть в UTF-16!! Хотя по RFC однозначно в ASCII должно быть. Я два дня об это бился лбом.

[identity profile] zaitcev.livejournal.com 2013-03-28 12:12 am (UTC)(link)
Do I understand it right that it's impossible to mix UTF-16 and ASCII colon? E.g. it's possible to have a character 0xNN3a. In such case, how are you supposed to find the colon?