什么是正确的头值绕过MDS HTTP认证? [英] What is the correct header value to bypass MDS HTTP authentication?

查看:419
本文介绍了什么是正确的头值绕过MDS HTTP认证?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现这篇文章:<一href=\"http://supportforums.blackberry.com/t5/Java-Development/Issues-with-BlackBerry-MDS-Connection-Service-when-using-$p$p/ta-p/495706\" rel=\"nofollow\">http://supportforums.blackberry.com/t5/Java-Development/Issues-with-BlackBerry-MDS-Connection-Service-when-using-$p$p/ta-p/495706

它说,从BlackBerry Enterprise Server 4.1.7开始,您可以添加X-轮缘认证直通头绕过每个请求MDS HTTP验证。

It says that starting from BlackBerry Enterprise Server 4.1.7 you can add x-rim-authentication-passthrough header to bypass MDS HTTP authentication per request.

能否有人告诉我这个头设置哪些价值?我乱撞迄今为止在那些没有工作是:

Can someone please tell me which value to set for this header? My wild guesses so-far that haven't worked are:

//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。

I must have messed something up the first time around. I never did find the documentation, I got the answer from someone at RIM.

这篇关于什么是正确的头值绕过MDS HTTP认证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆