Какое правильное значение заголовка для обхода аутентификации MDS HTTP? - PullRequest
0 голосов
/ 11 июня 2011

Я нашел эту статью: http://supportforums.blackberry.com/t5/Java-Development/Issues-with-BlackBerry-MDS-Connection-Service-when-using-Pre/ta-p/495706

В нем говорится, что начиная с BlackBerry Enterprise Server 4.1.7 вы можете добавить заголовок x-rim-authentication-passthrough для обхода аутентификации MDS HTTP для запроса.

Может кто-нибудь сказать, пожалуйста, какое значение установить для этого заголовка?Мои дикие предположения, которые до сих пор не сработали:

//httpConn.setRequestProperty("x-rim-authentication-passthrough", "true");
//httpConn.setRequestProperty("x-rim-authentication-passthrough", "enabled");
//httpConn.setRequestProperty("x-rim-authentication-passthrough", "");
//httpConn.setRequestProperty("x-rim-authentication", "passthrough");
//httpConn.setRequestProperty("x-rim-authentication-passthrough", "arghhh");
//httpConn.setRequestProperty("x-rim-authentication-passthrough", "where the hell is the documentation?");
//httpConn.setRequestProperty("x-rim-authentication-passthrough", "put the lime in the coconut");

Спасибо,

Луч

1 Ответ

0 голосов
/ 21 июня 2011

Правильный ответ:

httpConn.setRequestProperty("x-rim-authentication-passthrough", "true");

Я, должно быть, что-то напутал в первый раз.Я так и не нашел документацию, я получил ответ от кого-то в RIM.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...