1

I defined a new URI scheme on my Windows system (following this thread: how do I create my own URL protocol? (e.g. so://...))

I want the custom URI protocol to act like HTTP within Chrome/Firefox...

That is, I want: myprotocol://localhost/test.html

to act exactly like: http://localhost/test.html

Is it possible, or does the browser insist on valid URI schemes, even if they are fully defined in the registry?

(This pertains to a local server and is required for personal application testing; I realise custom URI's are a bad standard and should not be used in production)

Vadim Kotov
  • 7,766
  • 8
  • 46
  • 61
1owk3y
  • 1,038
  • 1
  • 10
  • 29

1 Answers1

0

It is certainly possible to link a custom scheme to the browser of your choice. The challenge is to get the browser to treat your scheme exactly like http:// as it cannot possibly know it has to speak HTTP to the target resource. However, this answer suggests using an <iframe/> is a viable workaround.

Community
  • 1
  • 1
DaSourcerer
  • 5,758
  • 4
  • 29
  • 53
  • Sorry for not getting back to you. I attempted that solution since you mentioned it. The iframe fails to load, it doesn't recognize the schema. – 1owk3y Jul 04 '16 at 12:02