钛移动框架。从 iPad 应用程序通过 VPN 访问服务器

发布于 2024-12-17 23:07:05 字数 217 浏览 4 评论 0原文

在 iPad 应用程序中,VPN 处于活动状态并已连接时,HttpClient 无法访问 Intranet 中的服务器,但当我从 Safari iPad 访问时可以访问相同的 url。

属性 Titanium.Network.networkTypeName 显示“WIFI”或“MOBILE”,但与 VPN 连接无关。

谁能帮助我吗?我的应用程序必须通过 VPN 访问服务器。 提前致谢。

In an iPad application, with VPN active and connected, the HttpClient can't access to a server in intranet, but I can access to same url when I access from Safari iPad.

The property Titanium.Network.networkTypeName shows "WIFI" or "MOBILE" but nothing related with a VPN connection.

Can anyone help me ? It's mandatory for my application access server through VPN.
Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

若言繁花未落 2024-12-24 23:07:05

我得到了有关我的问题的更多信息,实际上VPN不是问题,HTTClient使用当前设备连接通道,即使用VPN网络并且可以访问内网服务器。

该问题与 WAS 服务器有关,当用户通过 LDAP(使用 JAAS 标准)成功进行身份验证时,连接丢失,当身份验证失败时,通信正常并向用户显示正确的消息,但是当 LDAP 返回有效的身份验证时,某些内容丢失沟通渠道。

我不确定“真正的”问题,但解决方案是添加 HTTP 标头来请求:
“Connection”:“Keep-Alive”

这解决了问题。

I got more info about my problem, actually the VPN wasn't the problem, the HTTClient uses the current device connection channel, that is, uses the VPN network and there is access to intranet server.

The problem was related with WAS server, when user is authenticated successfully against LDAP (using JAAS standard) then Connection was lost, when authentication failed then communications was OK and correct message was show to user, but when LDAP returned a valid authentication something made lost the communication channel.

I'm not sure about the "real" problem, but the solution was to add the HTTP header to request:
"Connection": "Keep-Alive"

This solves the problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文