绕过MDS HTTP身份验证的正确标头值是多少?

时间:2011-06-11 19:11:32

标签: blackberry

我发现了这篇文章: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 :(得分:0)

正确答案是:

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

第一次我一定搞砸了。我从未找到过文档,我从RIM的某个人那里得到了答案。