URL Scheme with argument in windows - windows

Say I want to open this dictionary application by calling name://word. I followed this answer and successfully register the url scheme. However, if I visit name://example in my browser, it does open the app but it passed the whole url name://example. As a result, my dictionary app search for name://example string. I want to search for example only. How do I do it?

Related

How to open chrome app with specific URL through chrome_proxy.exe?

I have a Chrome app that I created with "Create Application Shortcut".
What I need is to open that app with specific url on the same domain.
Example:
chrome_proxy.exe --profile-directory=Default --app-id=xxxxxxxx "https://www.google.com"
Is that possible or any command that achive the same result?
I'm guessing you installed the Chrome app so that the website launches in a standalone window. If this is the case, you can achieve something similar by using the --app command line switch instead.
Eg: chrome_proxy.exe --profile-directory=Default --app="https://www.google.com"
This doesn't strictly open the URL in the existing app, but it does open that specific URL in a standalone window.
Here's the answer what you are looking for.
chrome_proxy.exe --profile-directory=Default --app-id=xxxxxxxx --app-launch-url-for-shortcuts-menu-item="https://youtu.be/dQw4w9WgXcQ"
Using this will work:
chrome_proxy.exe --profile-directory=Default --app-id=xxxxxxxx --app-launch-url-for-shortcuts-menu-item="https://youtu.be/dQw4w9WgXcQ"
It will launch in the special standalone window AND navigate to the specified URL.
Replace xxxxxxxx with the app id (this can be found if you look at the properties of the shortcut it created), but after you create the app this part should already be filled in.
At that point all you need to add is this part:
--app-launch-url-for-shortcuts-menu-item="https://youtu.be/dQw4w9WgXcQ"
Replacing the https:​//youtu.be/dQw4w9WgXcQ part with the full URL of where you would like to navigate to.
Documentation of the argument can be found here.
Credit due in part to 김보근.

Windows: Register URI-Scheme for specifically formatted http-URL

I've found a lot on this page on how to register a certain URI-scheme to open using a particular application in windows.
All Q & A which I've found cover creating an own protocol for this purpose which which is unique for the application which should be registered.
My question is: Is there a way to open usual http/https-Links which contain a certain pattern/format using application A, instead of opening all http/https-links with the browser?
Example: I want, that all links which match the format http://*.domainX.com/* or http://*.domainX.com/*, should be opened using my own application instead of the browser.
Thanks in advance!
On Windows you can try Registering the Application Handling the Custom URI Scheme
To register an application to handle a particular URI scheme, add a
new key, along with the appropriate subkeys and values, to
HKEY_CLASSES_ROOT. The root key must match the URI scheme that is
being added.
Let me know if this helps

Programmatically pass additional header info along with URL to open a browser

I have an application which at one point wants to launch a particular URL in the default browser. This is pretty simple and can be achieved using ShellExecute on Windows. However the catch is that the server expects some additional custom header information (for authentication/identification purposes) to be sent along with the GET request.
Is there any way by which this (additional header) information could be passed to the browser while launching it?
Note:- I want to launch the default browser and not use a Web browser control
As I understand you have only one option: add intermidiate page (in internet or on localhost).
You have to create yoursite.com/sendHeaders.php or localhost/sendHeaders.php (or any another extension; choose language what do you prefer), which does following:
Unpack parameters (URL and headers),
Connect to the URL, send the headers,
Print the answer in browser.
So you will open in your browser intermediate page yoursite.com/sendHeaders.php?url=realUrl&headers=packedHeaders, but browser will show you a page realUrl, which received proper headers.

Access an IVR Application menu choice manually from VXML server

How do I construct a URL to select a specific <choice> in a <menu>?
I have a simple IVR Application which is Deployed on the CVP VXML Server. It starts with two <audio> elements, then a <menu> with two <choice>s, and finally <disconnect>.
When I call this application from a Cisco IP Phone, it works perfectly. But what I want to do is to call the application manually from my browser and get the VXML for every element.
I am able to make a connection to the server and it returns the first <audio> element VXML. I'm accessing it by going to:
Server:port/CVP/Server?application="APP_NAME"
This URL correctly returns the first <audio> element. When I want to access the next element I change the URL to:
Server:port/CVP/Server?application="APP_NAME" ? audio_file="next" method="post"
This URL correctly returns the next element. Then I enter the above URL again and it correctly returns the <menu> with both `'.
How do I construct the URL to select a specific <choice> on the menu as if I was navigating it on a phone call using DTMF, where I pressed 1 to have the call flow enter into one branch, and when I pressed 2 it entered into another branch?
Just check the filled section of that vxml (that has the menu of 2 options). In the filled section, there would be some file that it is submitting to. Try to access that file in your URL (or try to replicate the path that the code is taking when one presses 2 - in your URL)
Check the field name, that would be the parameter you would need to pass to the next page.

Implementing my own protocol and using it through my browser

I want to create a new protocol so that I can view the data retrieved through the protocol in the browser.
For example, I want to be able to go to myprotocol://www.filepath.com/img.jpg and view the image.
Where myprotocol is defined by myself.
I have read about registering application handling here:
http://msdn.microsoft.com/en-us/library/aa767914%28v=vs.85%29.aspx
with this it is possible to run a desktop exe that receives the url I am trying to access. How would I return the retrieved jpg to the browser for viewing, so that it behaves like a normal protocol, such as http?
Thanks
That registration will allow you to bind an application to the uri, so if launched through windows explorer (including "Run") and from command line, then the app is launched and the uri passed to it as an argument (much like if you double-click a file, the default app for it is launched and the path to the file passed).
For example, your "default" browser will have http:// associated with it in this way.
It is still up to the application itself to have its own handling of the URI when it is passed as an argument. If you want to make a browser handle your new protocol, you will have to write an extension/plugin/add-on/whatever-that-browser's-makers-call-it to add further functionality to the browser. This is a separate job for Firefox, IE, Chrome, Konqueror, Chromium (well, at least it might be sharable with Chrome), etc. with separate APIs to deal with.

Resources