Custom URL protocol in Windows to serve HTML content
Posted
by Jen
on Stack Overflow
See other posts from Stack Overflow
or by Jen
Published on 2010-05-21T20:58:49Z
Indexed on
2010/05/21
21:00 UTC
Read the original article
Hit count: 262
This question addresses how to register a custom URL protocol to launch an application in response to a link, but I want my handler to serve dynamic content.
Essentially, I'm looking to create a web application that runs on the user's machine instead of a web server. I could set up a localhost
, but I want to use a "friendly" URL format that the user can reference elsewhere, e.g. a hypothetical cats
protocol:
cats:fluffy/cheeseburger-consumption-stats
How can I accomplish this? Also, do you see any pitfalls with this approach, such as security warnings from browsers?
Thanks!
© Stack Overflow or respective owner