它表示从 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");
正确答案是:
httpConn.setRequestProperty("x-rim-authentication-passthrough", "true");
我第一次肯定搞砸了一些事情。我从来没有找到文档,我从 RIM 的某人那里得到了答案。