访问安全Web服务器上的文档 [英] Access documents on secure web server

查看:115
本文介绍了访问安全Web服务器上的文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试构建一个iPad应用程序,以从Web服务器下载和显示文档(pdf,ppt,doc等). 当前,它是通过解析服务器上的HTML结构(使用hpple)来实现的.

I'm trying to build an iPad app to download and display documents (pdf, ppt, doc, etc.) from a web server. Currently it does this by parsing the HTML structure (using hpple) on the server.

例如,文件保存在:

Http://myserver.com/myFolders/myFiles/

应用程序使用X-Path查询(例如,

The app goes to this location and traverses the tree, using an X-Path query, e.g.

"/html/body/ul/li/a"

然后将找到的所有文档下载到iPad上进行显示.

It then downloads whatever documents it finds to the iPad for display.

到目前为止,它运行良好,但是服务器是可公开访问的.

So far this works quite well but the server is publicly accessable.

我的问题是,我将如何使用安全服务器执行类似的操作? 例如是否可以用密码保护服务器,使用iPad上的用户名/密码连接到服务器并使用同一系统?

My question is, how would I go about doing something similar with a secure server? e.g. is it possible to password protect the server, connect to it with username/password from the iPad and use the same system?

推荐答案

最后,我决定不解析HTML,因为似乎没有直接的方法可以解析HTML.而是将文档保存在ASP.Net服务器上,并具有访问所需的身份验证.

In the end I decided not to parse the HTML as there seemed to be no straightforward way to do so. Instead the documents are held on an ASP.Net server with authentication required for access.

很高兴知道如何遍历HTML,但又没什么大不了的.

It would've been nice to know how to do so by traversing HTML but no biggie.

这篇关于访问安全Web服务器上的文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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