CN110309476B - Method and device for calling local application program by webpage browser - Google Patents

Method and device for calling local application program by webpage browser Download PDF

Info

Publication number
CN110309476B
CN110309476B CN201910602357.XA CN201910602357A CN110309476B CN 110309476 B CN110309476 B CN 110309476B CN 201910602357 A CN201910602357 A CN 201910602357A CN 110309476 B CN110309476 B CN 110309476B
Authority
CN
China
Prior art keywords
application program
port
port information
information
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910602357.XA
Other languages
Chinese (zh)
Other versions
CN110309476A (en
Inventor
吴斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Zhongtongji Network Technology Co Ltd
Original Assignee
Shanghai Zhongtongji Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Zhongtongji Network Technology Co Ltd filed Critical Shanghai Zhongtongji Network Technology Co Ltd
Priority to CN201910602357.XA priority Critical patent/CN110309476B/en
Publication of CN110309476A publication Critical patent/CN110309476A/en
Application granted granted Critical
Publication of CN110309476B publication Critical patent/CN110309476B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • G06F9/4484Executing subprograms
    • G06F9/4486Formation of subprogram jump address

Abstract

The invention relates to a method and a device for calling a local application program by a web browser, which comprises the steps of receiving an address request of a target application program, wherein the address request carries port information and parameter information, identifying the port information and the parameter information, inquiring an installation catalog corresponding to the target application program in a preset registry based on the port information and the parameter information, and opening the target application program through the installation catalog.

Description

Method and device for calling local application program by webpage browser
Technical Field
The invention relates to the technical field of local application program calling, in particular to a method and a device for calling a local application program by a web browser.
Background
With the continuous improvement of the speed and the stability of mobile network communication, the webpage application software is more applied to the terminal equipment, the webpage application software is the application software which runs in a webpage form, the cross-platform running of various operating systems can be realized, the development cost is reduced, the problem of software updating does not exist when the application software is run through a webpage, the maintenance cost of the software is reduced, and the user experience is improved.
At present, most browsers open the local program by calling a specific control, and after the specific control is disabled, the local program is opened mostly by using a custom protocol, and generally, one protocol corresponds to one application program, and the efficiency is relatively low.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a method and an apparatus for a web browser to call a local application, so as to implement the call of the local application without perception by a user, which can enhance the flexibility of program call and effectively improve the efficiency of local application call.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for calling a local application program by a web browser comprises the following steps:
receiving an address request of a target application program, wherein the address request carries port information and parameter information;
identifying the port information and the parameter information;
based on the port information and the parameter information, inquiring an installation directory corresponding to the target application program in a preset registry;
and opening the target application program through the installation catalog.
Optionally, the identifying the port information and the parameter information includes:
calling a network monitoring application program in a target service program;
identifying, by the network listening application, the port information and the parameter information.
Optionally, before the invoking the network monitoring application in the target service program, the method further includes:
detecting return content associated with the port information;
judging whether a port matched with the port information is monitored or not according to the returned content;
and if the returned content indicates that the port matched with the port information is not monitored, sending an installation link of the target service program so that a user can install the target service program.
Optionally, the determining, according to the returned content, whether the port matched with the port information is monitored includes:
analyzing the returned content to obtain an analysis result;
and if the analysis result is that the address request is wrong or the returned content is empty, indicating that the port matched with the port information is not monitored.
Optionally, the method for calling the local application program by the web browser further includes:
receiving a binding request of the target service program;
identifying a binding object in the binding request;
and binding the target service program and the binding object so as to facilitate the synchronous operation of the target service program and the binding object.
Optionally, the opening the target application program through the installation directory includes:
starting an application program installation package corresponding to the target application program by utilizing a process class instruction;
calling an event processing entrustment matched with the application program installation package and an action entrustment incoming parameter matched with the application program installation package;
based on the event handling delegate and the action delegate incoming parameter, invoking an application programming function to open the target application.
An apparatus for a web browser to invoke a local application, comprising:
the receiving module is used for receiving an address request of a target application program, wherein the address request carries port information and parameter information;
the identification module is used for identifying the port information and the parameter information;
the query module is used for querying an installation directory corresponding to the target application program in a preset registry based on the port information and the parameter information;
and the execution module is used for opening the target application program through the installation catalog.
Optionally, the identification module is specifically configured to:
calling a network monitoring application program in a target service program;
identifying, by the network listening application, the port information and the parameter information.
Optionally, the apparatus for invoking a local application by a web browser further includes:
a detection module for detecting return content associated with the port information;
the judging module is used for judging whether the port matched with the port information is monitored or not according to the returned content;
and the installation module is used for sending the installation link of the target service program if the returned content indicates that the port matched with the port information is not monitored, so that a user can install the target service program.
Optionally, the execution module is specifically configured to:
starting an application program installation package corresponding to the target application program by utilizing a process class instruction;
calling an event processing entrustment matched with the application program installation package and an action entrustment incoming parameter matched with the application program installation package;
based on the event handling delegate and the action delegate incoming parameter, invoking an application programming function to open the target application.
The technical scheme of the invention can comprise the following beneficial effects:
the method and the device for calling the local application program by the web browser of the invention receive the address request of the target application program, the address request carries the port information and the parameter information, identifies the port information and the parameter information, and based on the port information and the parameter information, the installation catalog corresponding to the target application program is inquired in the preset registry, the function of automatically identifying different local application programs according to the port information and the parameter information is realized by opening the target application program through the installation catalog, the calling of the local application program is completed under the non-perception state, by the correspondence of the port information parameter information and the registry, the method is not limited to the complicated operation of one user-defined protocol corresponding to one application program, the application program is opened by inquiring the installation catalog, and the user does not need redundant operation in the whole process, so that the calling efficiency of the local application program is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for a web browser to invoke a local application according to an embodiment of the present invention.
Fig. 2 is another flowchart of a method for a web browser to invoke a local application according to an embodiment of the present invention.
Fig. 3 is a schematic structural diagram of an apparatus for invoking a local application by a web browser according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of an apparatus for invoking a local application by a web browser according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the examples given herein without any inventive step, are within the scope of the present invention.
Fig. 1 is a flowchart of a method for a web browser to invoke a local application according to an embodiment of the present invention.
As shown in fig. 1, a method for a web browser to invoke a local application according to this embodiment includes the following steps:
and S11, receiving the address request of the target application program.
The method includes the steps that corresponding target application programs are directly opened in a web browser mode, software updating operation is reduced in the mode, the use of a user is facilitated, the application needing to be opened by the user is defined as the target application program, the user can directly input a request for opening the target application program in a shortcut mode and can also directly input address information, the user directly transmits the request to the browser, and the browser stores, receives and processes the request information.
The address request is an HTTP request, which refers to a request message from a client to a server, and includes: in the message head line, when the browser sends a request to the web server, it transmits a data block, i.e. request information, to the server, the HTTP request information consists of 3 parts: request method URI protocol/version, Request Header (Request Header), Request body.
And S12, identifying the port information and the parameter information in the address request.
The port information and the parameter information are mainly identified by calling a network monitoring application program in a target service program and then identifying the port information and the parameter information by using the network monitoring application program, firstly, a network monitor in a website server is used for monitoring a port of a local host, the address parameter information of the application program can be mastered at any time through the port, the whole identification process is a process of establishing network communication between a web browser and the local host, and the port can be randomly configured. The port is an ideographic translation of an english port, and may be considered as an outlet of communication between a device and the outside, and the port may be divided into a virtual port and a physical port, where the virtual port refers to a port inside a computer or inside a switch router, and is invisible, for example, an 80 port, a 21 port, a 23 port, and the like in the computer, and the physical port is also called an interface, and is a visible port, an RJ45 network port of a computer backplane, an RJ45 port of a switch router hub, and the like.
The received address request of the target application program carries port information and parameter information, the same port may correspond to multiple functions, that is, the same port may correspond to multiple application programs, the port corresponding to the application program is identified through the port information, then the parameter information is identified through the ground port, and the port information and the parameter information can also be understood as being intercepted to obtain the port information and the parameter information. In the specific implementation process, a user may make a target service program into an installable application software, and deploy the application software to a web browser site, where the web browser site is a short term for a website, and is a collection of related web pages for displaying specific content, which is made by using tools such as HTML and the like on the internet according to a certain rule. When the browser receives an address request of a target application program, the target service program completes work by itself, and regarding the deployment process and the detailed deployment position of the target service program, the method is not specifically limited in this embodiment, and can be implemented by effectively monitoring and identifying port information and parameter information.
And S13, inquiring the installation directory corresponding to the target application program in a preset registry based on the port information and the parameter information.
After the port information and the parameter information are obtained, corresponding information can be directly inquired in a preset registry, the inquiry range is firstly narrowed through the port information, then a specific application program is locked through the specific parameter information, and then the installation catalog of the target application program can be obtained. For example, a port of the local host is designed with 5 application programs, the port is first narrowed down according to the address request of the target application program, if all the application programs corresponding to the port can only be queried in the registry through the port, the purpose of the port is to narrow the query range, and then the target application program is queried accurately through specific parameter information, so that the detailed installation catalog can be directly obtained.
The registry is preset, namely the registry comprises the installation catalog of each application program, the installation catalog is recorded into the registry when the local application program is installed, the information in the registry is correspondingly deleted when any application program is deleted, similarly, if an application program is newly added, the specific installation target is updated into the registry at the same time, namely the registry can be modified and has timeliness, the information of all the local application programs can be reflected, and the one-to-one correspondence between the application programs and the registry can be realized through the port information and the parameter information. The setting of the registry may be manually modified or automatically generated, and is not particularly limited in this embodiment, and the information values in the registry may be in one-to-one correspondence with the local application.
And S14, opening the target application program through the installation directory.
The installation catalog of the target application program is obtained by the steps, the local application program is opened directly through the installation target, the local application program is opened in a mode of installing the catalog, namely, the local application program is searched layer by layer, and finally, the local application program is opened directly, if the application program is opened manually in the mode, the method is more conventional, in the embodiment, the target application program is automatically opened according to the installation catalog through program implementation, redundant operation of a user is saved, the user does not sense and has high reaction speed in the whole process, and the specific process of opening the application program comprises the steps of firstly starting an application program installation package corresponding to the target application program by using a process type instruction, then calling an event processing order matched with the application program installation package and an action order incoming parameter matched with the application program installation package, and finally based on the event processing order and the action order incoming parameter, and calling an application programming function to open the target application. The whole process is that the communication between the browser and the local Program is realized, then an Application Program Interface is called to judge whether the starting is finished according to port information and parameter information sent by the browser, an Application programming function is used for ensuring the correct starting of a target Application Program, the Application Program Interface is (API, Application Program Interface) which is a set of definitions, programs and protocols, the mutual communication between computer software is realized through the API Interface, one main function of the API is to provide a general function set, the Application Program is developed through calling the API function, programming tasks can be lightened, and the API is also a middleware at the same time and provides data sharing for various platforms.
The browser can send an address request to a port of a local address, and the corresponding program can be opened by intercepting the address request through the network monitoring program, so that the problem of opening a target application program in a user-defined label protocol mode in the prior art is solved, and the user does not need to click a website connection each time or confirm a safety prompt requesting the browser, so that the function of directly opening the local application program by the network browser can be realized under the condition of no perception after the user installs the browser once.
The method for calling the local application program by the web browser of the embodiment receives the address request of the target application program, the address request carries the port information and the parameter information, identifies the port information and the parameter information, and based on the port information and the parameter information, the installation catalog corresponding to the target application program is inquired in the preset registry, the function of automatically identifying different local application programs according to the port information and the parameter information is realized by opening the target application program through the installation catalog, the calling of the local application program is completed under the non-perception state, by the correspondence of the port information parameter information and the registry, the method is not limited to the complicated operation of one user-defined protocol corresponding to one application program, the application program is opened by inquiring the installation catalog, and the user does not need redundant operation in the whole process, so that the calling efficiency of the local application program is improved.
Fig. 2 is another flowchart of a method for a web browser to invoke a local application according to an embodiment of the present invention.
As shown in fig. 2, a method for a web browser to invoke a local application according to this embodiment includes the following steps:
and S21, receiving the address request of the target application program.
And S22, detecting the return content associated with the port information in the address request.
When receiving the address request of the target application program sent by the browser, the local host computer also receives the address request information, and the local host computer outputs a return value according to the port information in the address request to represent the working condition of the port.
And S23, judging whether the port matched with the port information is monitored or not according to the returned content, if so, executing a step S25, and if not, executing a step S24.
When the returned content is detected through the above steps, the returned content is analyzed to obtain an analysis result, a specific embodiment form of the analysis content may be manually set, for example, the returned content is 404, which indicates that the port is not occupied, that is, not monitored, or other contents.
And S24, sending the installation link of the target service program.
Through the steps, it is known that a plurality of ports are not monitored, which indicates that the local host is not provided with the target service program to realize the communication with the local host and the local application program, at this time, the installation link of the target service program is automatically popped up, the communication between the local host and the local application program can be realized by one-key installation of a user, and if the port is judged to be monitored according to the analysis result, which indicates that the port has finished the communication between the local host and the application program, no redundant operation is needed, and the address request can be directly responded.
And S25, identifying the port information and the parameter information in the address request.
And S26, inquiring the installation directory corresponding to the target application program in a preset registry based on the port information and the parameter information.
And S27, opening the target application program through the installation directory.
And S28, receiving a binding request of the target service program.
And S29, identifying the binding object in the binding request.
In order to facilitate the use of the target service program, the target service program may be bound with the target object, the bound object may be a local host, that is, the target service program is started while the local host is started, it should be noted that the bound object is not specifically limited in this embodiment, and may be a local host, a web browser, or other application programs, the user may select the bound object according to the actual situation of the user, and may select the bound object according to the operating speed and the operating memory of the bound object, so that the efficient operation of the two is ensured, and in this embodiment, it is preferable to bind with the local host or bind with the web browser.
S30, binding the target service program and the binding object.
After the target service program is bound with the binding object, synchronous operation of the target service program and the local host can be realized, operation of independently operating the target service program is reduced, and the operation process is more convenient and faster.
Steps S21-S27 in this embodiment have already been described in detail in the above embodiments, and this embodiment will not be described in detail again, and steps S28-S30 in the flowchart are only for clarity of illustration, and are not in sequence with other steps, so long as the steps can be implemented, which falls within the protection scope of the present invention.
For example, a windows service is implemented by the target service program, and the window service opens the 60000 port of the computer, and the port listens for the address request. When a web browser website is opened, a get request is initiated through the browser to request a http://127.0.0.1:60000parameters XXXX port discovery return 404, which indicates that the port is not occupied, and indicates that a program of a windows service is not installed, at this time, a packaged windows service program is automatically popped up to be downloaded and installed by a user, the window service is automatically monitored after being installed by the window service, when the user opens the web browser website, the http://127.0.0.1:60000parameters XXXX address is requested again, and the program captures parameters to open a target application program of a corresponding local computer.
For example, a local qq is opened through a web browser, the qq is opened through a web page mode, so that the operation of updating qq software is omitted, a target service program is deployed on a network site firstly, information of each port is monitored, an installation link of the target service program is automatically popped up during first monitoring, a user installs the target service program by himself, then the target service program retrieves corresponding port information by clicking on a web page version qq, parameter information of qq to be operated is monitored through the port information, an installation catalog of the target service program is directly retrieved in a registry, the target application program is opened through an API (application programming interface) and directly operated, and the operation of the user in the whole process is only to click on a qq icon of the web page version, so that the operation without perception is realized. qq is only one of the examples, and other application software principles are similar and will not be described in detail, and also include functions developed by the application software, such as monitoring, directly querying a corresponding monitoring area by clicking the number of the monitor, and the like.
Fig. 3 is a schematic structural diagram of an apparatus for invoking a local application by a web browser according to an embodiment of the present invention.
As shown in fig. 3, an apparatus for invoking a local application by a web browser of this embodiment includes:
a receiving module 10, configured to receive an address request of a target application, where the address request carries port information and parameter information;
an identifying module 20, configured to identify port information and parameter information;
the query module 30 is configured to query an installation directory corresponding to the target application program in a preset registry based on the port information and the parameter information;
and the execution module 40 is used for opening the target application program through the installation directory.
A web browser of this embodiment calls a local application device by receiving an address request of a target application, where the address request carries port information and parameter information, identifies the port information and the parameter information, and based on the port information and the parameter information, the installation catalog corresponding to the target application program is inquired in the preset registry, the function of automatically identifying different local application programs according to the port information and the parameter information is realized by opening the target application program through the installation catalog, the calling of the local application program is completed under the non-perception state, by the correspondence of the port information parameter information and the registry, the method is not limited to the complicated operation of one user-defined protocol corresponding to one application program, the application program is opened by inquiring the installation catalog, and the user does not need redundant operation in the whole process, so that the calling efficiency of the local application program is improved.
Further, on the basis of the foregoing embodiment, the identification module 30 of the present embodiment is specifically configured to:
calling a network monitoring application program in a target service program;
and identifying the port information and the parameter information by the network monitoring application program.
Fig. 4 is a schematic structural diagram of an apparatus for invoking a local application by a web browser according to an embodiment of the present invention.
Further, as shown in fig. 4, on the basis of the foregoing embodiment, the apparatus for invoking a local application by a web browser of this embodiment further includes:
a detection module 50 for detecting return content associated with the port information;
a judging module 60, configured to judge whether a port matched with the port information is monitored according to the returned content;
and the installation module 70 is configured to send an installation link of the target service program if the returned content indicates that the port matching the port information is not monitored, so that the user can install the target service program.
Further, on the basis of the foregoing embodiment, the determining module 60 of the present embodiment is specifically configured to:
analyzing the returned content to obtain an analysis result;
if the analysis result is that the address request is wrong or the returned content is empty, it indicates that the port matched with the port information is not monitored.
Further, as shown in fig. 4, on the basis of the foregoing embodiment, the apparatus for invoking a local application by a web browser of this embodiment further includes:
the binding module 80 is configured to receive a binding request of the target service program, identify a binding object in the binding request, and bind the target service program and the binding object, so that the target service program and the binding object run synchronously.
Further, on the basis of the foregoing embodiment, the execution module 40 of the present embodiment is specifically configured to:
starting an application program installation package corresponding to a target application program by utilizing a process type instruction;
calling an event processing entrusting matched with the application program installation package and an action entrusting incoming parameter matched with the application program installation package;
based on the event handling delegate and the action delegate incoming parameters, an application programming function is invoked to open the target application.
Embodiments of the apparatus part have been described in detail in the embodiments of the method, and can be understood with reference to the method embodiments, which are not described in detail in the embodiments of the apparatus.
The present invention may also protect a browser, where the browser runs the method for calling the local application program by using the web browser in the above embodiment. The method is combined with the browser, so that the browser has more powerful functions and can better meet various requirements of users.
The present invention may also protect a storage medium comprising: the system comprises a processor and a memory connected with the processor, wherein the memory is used for storing a computer program, the computer program is at least used for executing the method for calling the local application program by the web browser in any embodiment, and the processor is used for calling and executing the computer program in the memory.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present invention, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (7)

1. A method for calling a local application program by a web browser is characterized by comprising the following steps:
receiving an address request of a target application program, wherein the address request carries port information and parameter information;
identifying the port information and the parameter information; the identifying the port information and the parameter information includes: calling a network monitoring application program in a target service program; identifying the port information and the parameter information by the network monitoring application;
based on the port information and the parameter information, inquiring an installation directory corresponding to the target application program in a preset registry;
opening the target application program through the installation catalog;
receiving a binding request of the target service program;
identifying a binding object in the binding request;
and binding the target service program and the binding object so as to facilitate the synchronous operation of the target service program and the binding object.
2. The method of claim 1, wherein before invoking the network listening application in the target service, further comprising:
detecting return content associated with the port information;
judging whether a port matched with the port information is monitored or not according to the returned content;
and if the returned content indicates that the port matched with the port information is not monitored, sending an installation link of the target service program so that a user can install the target service program.
3. The method according to claim 2, wherein the determining whether the port matching the port information is monitored according to the returned content includes:
analyzing the returned content to obtain an analysis result;
and if the analysis result is that the address request is wrong or the returned content is empty, indicating that the port matched with the port information is not monitored.
4. The method of claim 1, wherein the opening the target application through the installation directory comprises:
starting an application program installation package corresponding to the target application program by utilizing a process class instruction;
calling an event processing entrustment matched with the application program installation package and an action entrustment incoming parameter matched with the application program installation package;
based on the event handling delegate and the action delegate incoming parameter, invoking an application programming function to open the target application.
5. An apparatus for a web browser to invoke a local application, comprising:
the receiving module is used for receiving an address request of a target application program, wherein the address request carries port information and parameter information;
the identification module is used for identifying the port information and the parameter information; the identification module is specifically used for calling a network monitoring application program in the target service program; identifying the port information and the parameter information by the network monitoring application;
the query module is used for querying an installation directory corresponding to the target application program in a preset registry based on the port information and the parameter information;
the execution module is used for opening the target application program through the installation catalog;
the binding module is used for receiving a binding request of the target service program; identifying a binding object in the binding request; and binding the target service program and the binding object so as to facilitate the synchronous operation of the target service program and the binding object.
6. The apparatus of claim 5, further comprising:
a detection module for detecting return content associated with the port information;
the judging module is used for judging whether the port matched with the port information is monitored or not according to the returned content;
and the installation module is used for sending the installation link of the target service program if the returned content indicates that the port matched with the port information is not monitored, so that a user can install the target service program.
7. The apparatus of claim 5, wherein the execution module is specifically configured to:
starting an application program installation package corresponding to the target application program by utilizing a process class instruction;
calling an event processing entrustment matched with the application program installation package and an action entrustment incoming parameter matched with the application program installation package;
based on the event handling delegate and the action delegate incoming parameter, invoking an application programming function to open the target application.
CN201910602357.XA 2019-07-05 2019-07-05 Method and device for calling local application program by webpage browser Active CN110309476B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910602357.XA CN110309476B (en) 2019-07-05 2019-07-05 Method and device for calling local application program by webpage browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910602357.XA CN110309476B (en) 2019-07-05 2019-07-05 Method and device for calling local application program by webpage browser

Publications (2)

Publication Number Publication Date
CN110309476A CN110309476A (en) 2019-10-08
CN110309476B true CN110309476B (en) 2021-05-25

Family

ID=68079087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910602357.XA Active CN110309476B (en) 2019-07-05 2019-07-05 Method and device for calling local application program by webpage browser

Country Status (1)

Country Link
CN (1) CN110309476B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309399A (en) * 2020-02-26 2020-06-19 北京思特奇信息技术股份有限公司 Method, system, medium and device for starting easy-to-ask native client
CN112637121B (en) * 2020-11-17 2022-10-25 中信银行股份有限公司 Data port updating method and device, electronic equipment and readable storage medium
CN112379896A (en) * 2020-11-24 2021-02-19 中教云智数字科技有限公司 Software communication interaction method based on registry and http protocol
CN112468611B (en) * 2020-11-27 2023-04-21 深圳市欢太科技有限公司 Application program starting method, terminal equipment and computer storage medium
CN113268277A (en) * 2021-04-27 2021-08-17 深圳震有科技股份有限公司 Web-based client access method and terminal equipment
CN113507529B (en) * 2021-07-26 2022-12-06 上海中通吉网络技术有限公司 Method for realizing file downloading based on Web application
CN114268840A (en) * 2021-12-20 2022-04-01 中国电信股份有限公司 Video pushing method and device, storage medium and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106102A (en) * 2013-01-14 2013-05-15 百度在线网络技术(北京)有限公司 Running method of Web application program and mobile terminal
CN103279375A (en) * 2013-06-19 2013-09-04 百度在线网络技术(北京)有限公司 Method and device for running application programs in browser
CN103473367A (en) * 2013-09-27 2013-12-25 北京奇虎科技有限公司 Method for using local application program in browser and web browser
CN103617055A (en) * 2013-11-20 2014-03-05 北京奇虎科技有限公司 Browser and method and device of starting applications in browser
CN105897902A (en) * 2016-05-05 2016-08-24 北京思特奇信息技术股份有限公司 Method and system for starting local application by browser
CN106873961A (en) * 2016-07-27 2017-06-20 阿里巴巴集团控股有限公司 The method and device that APP is applied is waken up by mobile browser
CN109710331A (en) * 2018-12-27 2019-05-03 武汉益模科技股份有限公司 A method of calling local application from webpage

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239063B (en) * 2014-09-23 2018-08-10 福建星网视易信息系统有限公司 A kind of web browser and the method by web browser calling local application
CN109947582A (en) * 2019-03-29 2019-06-28 深圳市永兴元科技股份有限公司 The exchange method of browser and local application, equipment and readable storage medium storing program for executing

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106102A (en) * 2013-01-14 2013-05-15 百度在线网络技术(北京)有限公司 Running method of Web application program and mobile terminal
CN103279375A (en) * 2013-06-19 2013-09-04 百度在线网络技术(北京)有限公司 Method and device for running application programs in browser
CN103473367A (en) * 2013-09-27 2013-12-25 北京奇虎科技有限公司 Method for using local application program in browser and web browser
CN103617055A (en) * 2013-11-20 2014-03-05 北京奇虎科技有限公司 Browser and method and device of starting applications in browser
CN105897902A (en) * 2016-05-05 2016-08-24 北京思特奇信息技术股份有限公司 Method and system for starting local application by browser
CN106873961A (en) * 2016-07-27 2017-06-20 阿里巴巴集团控股有限公司 The method and device that APP is applied is waken up by mobile browser
CN109710331A (en) * 2018-12-27 2019-05-03 武汉益模科技股份有限公司 A method of calling local application from webpage

Also Published As

Publication number Publication date
CN110309476A (en) 2019-10-08

Similar Documents

Publication Publication Date Title
CN110309476B (en) Method and device for calling local application program by webpage browser
CN110535831B (en) Kubernetes and network domain-based cluster security management method and device and storage medium
AU2005215546B2 (en) Method of testing open services gateway initiative service platform and test tool using the method
EP2891977B1 (en) Method, system and device for managing software on virtual machine in cloud environment
EP3575975B1 (en) Method and apparatus for operating smart network interface card
US20080235374A1 (en) Electronic device monitoring method, electronic device computer and program thereof
CN106528143A (en) Configuration management method and device
US10404568B2 (en) Agent manager for distributed transaction monitoring system
US9535666B2 (en) Dynamic agent delivery
JP2003515817A (en) Independent network browser with diagnostic capabilities
CN112653618A (en) Gateway registration method and device of micro-service application API endpoint
WO2014169619A1 (en) Systems and methods for installing applications
CN111930565B (en) Process fault self-healing method, device and equipment for components in distributed management system
CN109189652A (en) A kind of acquisition method and system of close network terminal behavior data
CN108965403A (en) O&M monitors establishment of connection method and terminal device
CN112579398A (en) Monitoring deployment method and device
CN115758334A (en) Cloud application access method and device, electronic equipment and storage medium
CN104734914A (en) Method, device and system used for monitoring network
CN115658221A (en) State detection method, service virtual machine, equipment and medium
CN114706772A (en) Installation environment detection method, device, equipment and storage medium
JP2007304837A (en) Information processor, monitoring method, and program
JP6412641B2 (en) Communication link transmission method, apparatus and terminal
Cisco Configuring the Cisco 200 Software for Use in Windows
Cisco Configuring the Cisco 200 Software for Use in Windows
Cisco Configuring the Cisco 200 Software for Use in Windows

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant