处理自定义协议
我希望响应来自网络浏览器(希望是任何网络浏览器)的事件。我只在 Windows 上工作,我得出的结论是自定义协议(IE myprot://collection/of/strings
)是这里最好的方法(有异议吗?)。但是,处理该协议的实例似乎有点不那么直接。我所需要的只是将字符串集合自动神奇地传递到我已经运行的应用程序! (应用程序只会在特定的等待状态下响应这些链接)
所以,如果可以的话,请回答我,处理它们的“流行”方法是什么,或者更好的方法是什么?“最好”(主观 - 我知道)的方法是什么?做吗?
尽管您的答案不需要特定于我的语言,但我正在使用 Delphi 进行开发。
谢谢!
I'm looking to respond to an event from a web browser, hopefully any web browser. I'm working solely on windows and I came to the conclusion a custom protocol (I.E. myprot://collection/of/strings
) is the best approach here (any objections?). But, handling an instance of this protocol seems to be a little less straight-forward. All I need is that collection of strings auto-magically passed to my already running application! (the app will only respond to these links while in a specific waiting state)
So answer me this, if you can, Whats the 'popular' method of handling them or better yet Whats the 'best' (subjective - I know) way to do it?
Although your answers don't need to be specific to my language, I am using Delphi for development.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为什么不使用常规 url? http://localhost/myhandler/collection/of/strings。据我所知,自定义协议仅适用于 IE,您仍然需要在客户端计算机上安装处理程序。
过去,我在一个项目中使用自定义协议来支持笔记本电脑脱机工作,但那时在笔记本电脑上安装 IIS 很麻烦。但现在——有什么意义呢?
Why not use the regular urls? http://localhost/myhandler/collection/of/strings. To the best of my knowledge custom protocols only work for IE and you still need to install the handler on the client computer.
In the past I used custom protocols in one of my projects to support laptops working offline, but it was back in the time when installing IIS on a laptop was a call for trouble. but now - what's the point?