Multi-argument protocol handler

I created an application to work as a protocol handler, the registry is configured in accordance with http://msdn.microsoft.com/en-us/library/ie/aa767914(v=vs.85).aspx

Then on the webpage there is something like:

<a href="testapp:arg1">Test App</a>

If I click the link, the application will start and "testapp: arg1" will be passed as an argument.

Now I want to pass a few arguments to the handler. I assume that I will have a “command” in the registry key "path_to_exe" "%1" "%2". However, I cannot figure out how to write an html link to provide multiple arguments.

Can I pass multiple arguments? If so, how to do it and are there differences between different browsers?

+4
source share
1 answer

In registering an application in a URI scheme , he says that

When a user clicks on a link containing your custom URI, Windows Internet Explorer launches the plug-in protocol handler registered for that URI. If the specified open command specified in the registry contains the% 1 parameter, Internet Explorer passes the URI to the registered protocol plug-in.

which means that spaces will be treated as a character in the entire URI.

0
source

Source: https://habr.com/ru/post/1548213/


All Articles