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

问题描述 投票:0回答:1

我找到了这篇文章: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");
blackberry
1个回答
0
投票

正确答案是:

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

我第一次肯定搞砸了一些事情。我从来没有找到文档,我从 RIM 的某人那里得到了答案。

© www.soinside.com 2019 - 2024. All rights reserved.