CN110311978A - Browser information processing method, device, equipment and storage medium - Google Patents
Browser information processing method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN110311978A CN110311978A CN201910586482.6A CN201910586482A CN110311978A CN 110311978 A CN110311978 A CN 110311978A CN 201910586482 A CN201910586482 A CN 201910586482A CN 110311978 A CN110311978 A CN 110311978A
- Authority
- CN
- China
- Prior art keywords
- browser
- server
- client
- information
- browser information
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention provides a kind of browser information processing method, device, equipment and storage medium.This method comprises: client obtains npm packet by browser based on by the communication connection between browser and first server.Client passes through the access request message that browser is sent to first server.First server sends access request message to second server.Second server sends access response success message to first server.First server sends access response message to client.Client obtains the first browser information of browser when intercepting the access response message of first server transmission by npm packet.Client is not stored when having the first browser information in judging client, sends the first browser information to second server.To realize the information for obtaining each user automatically and using browser, appropriate supporting is provided convenient for developer, tester, operation maintenance personnel, is solved the problems, such as in time corresponding.
Description
Technical field
The present invention relates to the communication technologys more particularly to a kind of browser information processing method, device, equipment and storage to be situated between
Matter.
Background technique
Each field needs to provide Informational support for the service management in the field.In general, such as medical treatment and endowment field
Information system includes a variety of application systems, such as rehabilitation training system, long-term care system, marketing system, resident's system.
User accesses most application systems often through web browser.Currently, web browser has multiple types, such as paddy
Sing browser, IE browser, red fox browser, Safari browser, Camino browser, Gecko browser, Opera browsing
Device, Edge browser, 360 browsers.And every kind of web browser has different versions.In general, developer is in development process
In often preferential a certain browser (such as Google's browser) carry out exploitation debugging, tester can only also make according to developer
Browser is tested, in this way, operation maintenance personnel is difficult quickly to determine that this is asked when user accesses application system when something goes wrong
Caused by whether topic is due to browser-incompatible.Therefore, user accesses web browser and its version used in application system
This situation needs are learned, so that developer can targetedly do exploitation debugging in different web browsers
Verifying, tester can also targetedly test on different browsers, so that operation maintenance personnel is fast and accurately
The information of browser is grasped in order to solve the problems, such as.
Therefore, how to know that user accesses the information of the used web browser of application system automatically, be urgently to be resolved at present
The technical issues of.
Summary of the invention
The embodiment of the present invention provides a kind of browser information processing method, device, equipment and storage medium, automatic to realize
The information for the browser that each user uses is obtained, appropriate service branch is provided convenient for developer, tester, operation maintenance personnel
Support, solves the problems, such as corresponding in time.
In a first aspect, the embodiment of the present invention provides a kind of browser information processing method, comprising:
Client obtains node by browser and assures based on by the communication connection between browser and first server
Manage device npm packet;
The client sends access request message, the access request to the first server by the browser
Message is for requesting access to the first server;
The client when intercepting the access response message that the first server is sent by the npm packet, from
The first browser information of the browser is obtained in the client, the access response message is that the first server exists
Receive second server transmission access response success message when to the client send message, the access response at
Function message is that the second server verifies that access request message success that the first server is sent is associated to disappear
Breath;
The client is not stored when having first browser information in judging the client, and Xiang Suoshu second takes
Business device sends first browser information.
Optionally, the client judges not stored in the client there is first browser information, comprising:
The client judges the second browser information whether is preserved in the client, second browser information
For the information of previously stored browser in the client;
If so, the client judges whether first browser information and second browser information are consistent;
If inconsistent, the client judges not stored in the client there is first browser information.
Optionally, the client is not stored when having first browser information in judging the client, to institute
It states second server and sends first browser information, comprising:
If the client judges not saving second browser information in the client, to the second service
Device sends the first notification message, includes first browser information, first notification message in first notification message
For notifying the second server to save or update first browser information.
Optionally, the client is not stored when having first browser information in judging the client, to institute
It states second server and sends first browser information, comprising:
If the client judges that first browser information and second browser information are inconsistent, Xiang Suoshu
Second server sends second notification message, includes first browser information in the second notification message, and described second
Notification message is for notifying the second server to save or update first browser information.
Optionally, the method also includes:
If the client judges not preserving second browser information in the client, described first is stored
Browser information.
Optionally, the method also includes:
If the client judges that first browser information and second browser information are inconsistent, according to institute
It states the first browser information and updates second browser information.
Optionally, first browser information includes following at least one: the title of browser, belongs to kernel version number
Property information, multipurpose internet mail extensions mime type or cookies initiate mode.
Second aspect, the present invention provide a kind of browser information processing unit, comprising:
Module is obtained, for being obtained by browser based on by the communication connection between browser and first server
Node package manager npm packet;
Sending module, for sending access request message, the access to the first server by the browser
Request message is for requesting access to the first server;
The sending module is also used to intercept what the first server was sent by the npm packet in blocking module
When access response message, the first browser information of the browser is obtained from client, the access response message is institute
The message that first server is sent when receiving the access response success message of second server transmission to the client is stated,
The access response success message is the access request message that the second server verifies that the first server is sent
The associated message of success;
The sending module is also used to judge not stored in the client have first browser to believe in judgment module
When breath, Xiang Suoshu second server sends first browser information.
Optionally, the judgment module, it is described for judging whether preserve the second browser information in the client
Second browser information is the information of previously stored browser in the client;Second is not preserved in the client
When browser information, judge whether first browser information and second browser information are consistent;It is clear described first
Look at device information and inconsistent second browser information when, judge not stored in the client there is first browser to believe
Breath.
Optionally, the sending module, it is described specifically for judging not saving in the client in the judgment module
When the second browser information, Xiang Suoshu second server sends the first notification message, includes described in first notification message
First browser information, first notification message is for notifying the second server to carry out first browser information
It saves or updates.
Optionally, the sending module, also particularly useful for the judgment module judge first browser information with
When second browser information is inconsistent, Xiang Suoshu second server sends second notification message, the second notification message
In include first browser information, the second notification message for notify the second server to it is described first browsing
Device information is saved or is updated.
Optionally, the browser processing unit further include: memory module;
The memory module does not preserve second browser for judging in the judgment module in the client
When information, first browser information is stored.
Optionally, the browser processing unit further include: update module;
The update module, for judging first browser information and second browsing in the judgment module 14
When device information is inconsistent, second browser information is updated according to first browser information.
Optionally, first browser information includes following at least one: the title of browser, belongs to kernel version number
Property information, multipurpose internet mail extensions mime type or cookies initiate mode.
The third aspect, the present invention provide a kind of computer readable storage medium, are stored thereon with computer program, the meter
Browser information processing method described in first aspect is realized when calculation machine program is executed by processor.
Fourth aspect, the present invention provide a kind of electronic equipment, comprising:
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to execute browser described in first aspect via the executable instruction is executed
Information processing method.
Browser information processing method, device, equipment and storage medium provided in an embodiment of the present invention, pass through client's end group
It intercepts message in that can obtain to have by browser by the communication connection between browser and first server and obtains clear
Look at device information function npm packet.When user is using client request access first server, client passes through browser
Access request message is sent to first server.The access request message is then forwarded to second server by first server.The
Two servers verify access request message, and second server sends access to first server when being proved to be successful and rings
Answer success message.First server sends access response message to client when receiving the access response success message.Visitor
Family end can obtain the first browsing of browser when intercepting the access response success message by npm packet from client
Device information.Since the information of the browser saved in client and second server is consistent, client is in judgement visitor
It is not stored in the end of family to send the first browser information to second server when having the first browser information, it not only can be more
The information of browser, can also reduce the repetitive operation between client and second server in new second server.The present invention
In, by the automatic interception of client, allow the operators such as developer, tester and operation maintenance personnel actively from
The information for the browser that each user uses is got in second server, and then appropriate supporting is provided in time, that is, is opened
Hair personnel can targetedly do exploitation debugging verifying in different web browsers, and tester can be targetedly not
It is tested in same web browser, operation maintenance personnel can grasp the information of browser fast and accurately in order to solve in time
Problem.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair
Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of schematic diagram of a scenario of communication system;
Fig. 2 is the signaling process figure of browser information processing method provided by the invention;
Fig. 3 is the signaling process figure of browser information processing method provided by the invention;
Fig. 4 is the structural schematic diagram of browser information processing unit provided by the invention;
Fig. 5 is the structural schematic diagram of browser information processing unit provided by the invention;
Fig. 6 is the structural schematic diagram of browser information processing unit provided by the invention;
Fig. 7 is the hardware structural diagram of electronic equipment provided by the invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with the attached drawing in the present invention, to this
Technical solution in invention is clearly and completely described, it is clear that and described embodiments are some of the embodiments of the present invention,
Instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative labor
Every other embodiment obtained under the premise of dynamic, shall fall within the protection scope of the present invention.
Fig. 1 is a kind of schematic diagram of a scenario of communication system, as shown in Figure 1, the communication system may include: first service
Device, second server and client.
The client that the present embodiment is related to provides the program of local service for user, such as webpage or application program, wherein
Client can be set in ustomer premises access equipment, the ustomer premises access equipment can be mobile phone, tablet computer and Mobile player, can also
To be the access devices such as gateway, router.
The first server that the present embodiment is related to provides the service routine of its normal operation for client to provide accordingly
Service, can be for such as web server.
The second server that the present embodiment is related to provides the service that such as data are supported, and and client for first server
The information of the browser of middle preservation is consistent, can be in full according to library server and/or customer center server.Wherein,
Two servers can be one, or multiple, the present embodiment does not limit this.
Wherein, include one or more browsers in client, and client respectively with first server and second service
Establishing between device has communication connection, and also establishing between first server and second server has communication connection.
Disappear in general, user can send access request to first server by the browser of any one in client
Breath, wherein access request message is that user requests access to the associated message of first server, for example, in access request message
May include the information such as user account and user password, the present embodiment to the particular content of this access request message without limitation.
First server can send the access request message to second server, allow second server directly or by
Three servers verify the access request message, such as authorization identifying or cipher authentication, wherein second server and/
Or the information of authentication-access request message is stored in third server, such as user account and user password information.
In conventional methods where, in the access request message authentication failed, second server can be returned to client and be visited
Response failed message is asked, so that user, which is known, logs in first server failure.When the access request is proved to be successful, second service
Device can send access response success message to client, and user is normally logged in and accesses first server.However,
The operators such as developer, tester and operation maintenance personnel can not obtain each client from second server and be based on first
The information of the browser of server log.
To solve the above-mentioned problems, the present embodiment provides a kind of browser information processing method, device, equipment and storages to be situated between
Matter, can automatic interception by client to the information of browser so that developer, tester and operation maintenance personnel etc.
Operator can get the information for the browser that each user uses from second server.
In the following, in conjunction with the communication system in Fig. 1, by specific embodiment, to the browser information processing side of the present embodiment
The specific implementation process of method is described in detail.
Fig. 2 is the signaling process figure of browser information processing method provided by the invention, as shown in Fig. 2, the present embodiment
Browser information processing method may include:
S101, client are obtained based on by the communication connection between browser and first server by browser
Node package manager (node package manager, npm) packet.
In conjunction with Fig. 1, browser and first server foundation in client have communication connection, and store in first server
There is npm packet, therefore, the browser when the access first server of the browser in client can be used in user, in client
It can inform that first service needs to obtain npm packet by the communication connection.In turn, first server can replicate a npm packet
To fixed storage space, the browser in client is allowed to be loaded directly into the npm packet from the fixed storage space to clear
It lookes in device.
Wherein, which refers to web browser.And the npm packet that the present embodiment is related to has blocker and obtains clear
Look at device information tool class Software Development Tools, can be managed by npm packet management tool, can also open and be to other
System is introduced from npm packet management tool and is used.
Wherein, npm packet management tool can be understood as the management tool installed, upgraded, unloaded to some program bags.
Programmer can usually use some tools when programming, similar to installing some softwares on computers.These tools or
Some source code packets are all to be installed and used by order line to download.Therefore with regard to needing a management tool to carry out these installation kits
Management.Under normal circumstances, which is made of three independent parts, specially website, registration table
(registry) and command-line tool (CLI).Website is that developer searches packet (package), setting parameter and management npm packet
The main path of usage experience.Registration table is a huge database, saves the information of each packet.CLI passes through order line
Or terminal operating, developer are come into contacts with by CLI and npm packet.
S102, client send accessing request information to first server by browser, which can be with
For requesting access to first server.
In conjunction with Fig. 1, the browser in client can establish the communication connection between first server, so as to first
Server sends access request message, to request access to first server.
Wherein, which can be using the existing message transmitted between client and first server, can also
Can specifically be carried out in the form of list, mark, number etc. using the newly-increased message transmitted between client and first server
Signal, the present embodiment do not limit this, need to only meet the access request message be used to indicate user use it is clear in client
Device of looking at wants access to first server.
For example, user name, user password, head message etc. can be carried in the access request message.
S103, first server send access request message to second server.
In conjunction with Fig. 1, the data of the accessible first server of user are previously stored in usual second server, therefore,
First server directly can send the access request message to second server when receiving access request message, can also
To handle the access request message, then to second server send treated access request message.For example, the first clothes
Business device can split the access request message, give the message distribution after fractionation to multiple second servers.For another example, first
Server can add the attribute information (such as system version) of first server in the access request message, then take to second
Business device sends the access request message after addition.For another example, specific treatment process is executed in conjunction with above-mentioned two example.
S104, second server send access success message to first server, and access response success message is the second clothes
The associated message of access request message success that device verifying first server of being engaged in is sent.
In conjunction with Fig. 1, first server can choose whether to handle the access request message according to the actual situation,
The access request message is sent to second server again, the access request message is verified convenient for second server, to sentence
The whether accessible first server of disconnected user.
On the one hand, second server obtains access response failed message in access request message authentication failed.Wherein,
The access response failed message can also use client using the existing message transmitted between client and second server
The newly-increased message transmitted between end and second server, can specifically be illustrated, this reality in the form of list, mark, number etc.
It applies example not limiting this, need to only meet the access response failed message for indicating that user is not available the browsing in client
Device accesses first server.
On the other hand, second server obtains access response success message when access request message is proved to be successful.Its
In, which can be using the existing message transmitted between first server and second server, can also be with
Using the newly-increased message transmitted between first server and second server, specifically can in the form of list, mark, number etc. into
Row signal, the present embodiment do not limit this, and need to only meet the access response message for indicating that client can be used in user
On browser access first server.
It should be noted that second server can also be without any processing in access request message authentication failed, make
Client is obtained in the information that request failure can be presented to user by browser after preset duration, so that user sends out again
Play request.
S105, first server send access response message to client, and access response message is that first server is connecing
The message sent when receiving the access response success message of second server transmission to client.
In the present embodiment, first server, can be with when receiving the access response success message of second server transmission
Access response message is sent to client, to inform that client can normally access first server.
S106, client are when intercepting the access response message of first server transmission by npm packet, from client
Obtain the first browser information of browser.
Based on the description of npm packet, the browser in client can intercept first server to client by npm packet
The access response message of transmission.When intercepting the access response success message to browser on the client, in client
Browser can continue by npm packet, the first browser information of browser is obtained from client.
Wherein, the present embodiment to the particular content of the first browser information without limitation.Optionally, the first browser information
Including following at least one: title, kernel version number, attribute information, the multipurpose internet mail extensions MIME class of browser
Type or cookies initiate mode.In addition, first browser information can also include but is not limited to browser use language,
The screen resolution whether default language, the browser of browser support have media player quickTime, browser to support is high
Whether screen resolution width, the browser that degree, browser are supported have whether media player MediaPlayer, browser have
The information such as realPlayer.
S107, client are not stored when having the first browser information in judging client, send the to second server
One browser information.
Whether in the present embodiment, client is when getting the first browser information, it can be determined that be stored in client
First browser information.Since the information of the browser saved in client and second server is consistent, client
It is not stored when having the first browser information in judging client, the first browser information can be sent to second server, no
The information that browser in second server can be only updated according to the first browser information, can also reduce client and the second clothes
Repetitive operation between business device improves operation rate to save operating cost.
It should be noted that client directly can send the first browser information to second server, can also pass through
To second server the first browser information of transmission, the present embodiment is not limited this for second server or other equipment.
Browser information processing method provided in this embodiment is based on passing through browser and first server by client
Between communication connection, can by browser obtain have the function of intercept message and acquisition browser information npm packet.
When user is using client request access first server, client sends access request to first server by browser
Message.The access request message is then forwarded to second server by first server.Second server to access request message into
Row verifying, and second server sends access response success message to first server when being proved to be successful.First server exists
Access response message is sent to client when receiving the access response success message.Client is intercepting this by npm packet
When access response success message, the first browser information can be obtained from client.Due in client and second server
The information of the browser of preservation is consistent, and therefore, client is not stored when having the first browser information in judging client,
The first browser information can be sent to second server, can not only update the information of browser in second server, may be used also
To reduce the repetitive operation between client and second server.In the present embodiment, by the automatic interception of client, so that opening
The operators such as hair personnel, tester and operation maintenance personnel can actively get each user from second server and use
Browser information, and then provide appropriate supporting in time, i.e., developer can be targetedly clear in different web
It lookes on device and does exploitation debugging verifying, tester can targetedly test in different web browsers, operation maintenance personnel
The information of browser can be grasped fast and accurately in order to solve a problem promptly.
On the basis of above-mentioned Fig. 2 embodiment, in conjunction with Fig. 3, to the specific of the browser information processing method of the present embodiment
Realization process is into detailed description.
Fig. 3 is the signaling process figure of browser information processing method provided by the invention, as shown in figure 3, the present embodiment
Browser information processing method may include:
S201, client obtain npm by browser based on by the communication connection between browser and first server
Packet.
S202, client send accessing request information to first server by browser, which can be with
For requesting access to first server.
S203, first server send access request message to second server.
S204, second server send access success message to first server, and access response success message is the second clothes
The associated message of access request message success that device verifying first server of being engaged in is sent.
S205, first server send access response message to client, and access response message is that first server is connecing
The message sent when receiving the access response success message of second server transmission to client.
S206, client pass through browser when intercepting the access response message of first server transmission by npm packet
In npm packet the first browser information of browser is obtained from client.
Wherein, S201, S202, S203, S204, S205 and S206 respectively in Fig. 2 embodiment S101, S102, S103,
S104, S105 are similar with S106 implementation, and details are not described herein again for the present embodiment.
In the present embodiment, client can be by judging the first browser information when handling the first browser information
No preservation in the client, to determine whether first browser information saves in second server, so as to developer, is tested
The operators such as personnel and operation maintenance personnel can rationally utilize the first browser information.To which client can execute step
S2071-S2076 avoids the repetition of the first browser information from storing, can also take to second not only to save memory space
Device notice of being engaged in updates or the first browser information of storage, to keep the synchronization of information.
S2071, client judge the second browser information whether is preserved in client.If it is not, then executing S2072-
S2073;If so, executing S2074-S2076.
In the present embodiment, since the second browser information may be preserved in client in advance, it is also possible to not save in advance
There is the second browser information, therefore, client can first determine whether to preserve second when getting the first browser information
Browser information.Wherein, the second browser information is that user accesses one or more used browser of first server
Information.
S2072, client send the first notification message to second server, include the first browser in the first notification message
Information, the first notification message is for notifying second server to save the first browser information.
The up-to-date information of browser is preserved for the ease of second server, therefore, client can be to second server
The first notification message is sent, first server is allowed to save the first browser letter in time when receiving the first notification message
Breath, to facilitate the operations such as subsequent inquiry or calling.
Wherein, which can be using the existing message transmitted between second server and client, can also
Can specifically be carried out in the form of list, mark, number etc. using the newly-increased message transmitted between second server and client
Signal, the present embodiment do not limit this, and need to only meet first notification message for notifying second server to browse to first
Device information is saved.
S2073, client store the first browser information.
The up-to-date information of browser is preserved for the ease of client, therefore, client does not save in determining client
When having the second browser information, the first browser information can be directly saved, to facilitate the operations such as subsequent inquiry or calling.Its
In, the first browser information can be stored in the local cache of client by client or other are stored in equipment, this reality
Example is applied not limit this.
It should be noted that there is no the sequencing in timing between above-mentioned S2072 and S2073, and S2072 and S2073
It may be performed simultaneously, can also sequentially execute.
In the present embodiment, client can keep the browser in client by executing above-mentioned S2072 and S2073
Information is consistent with the information of the browser in second server, can be with so that client is when getting the first browser information
By judging whether preserve the first browser information in client, to determine whether preserve the first browsing in second server
Device information, to reduce the repetitive operation between client and second server.
S2074, client judge whether the first browser information is consistent with the second browser information.
Since client may carry out edition upgrading or update etc. to browser after saving the second browser information
Processing, therefore, the second browser information saved in client is not the up-to-date information of browser, therefore, first server
It is whether consistent with the second browser information that the first browser information can be compared, whether be newest to verify the second browser information
Information.Under normal circumstances, client, can be without appointing when judging that the first browser information is consistent with the second browser information
What is operated.
Wherein, client can store the second browser information in local cache in the client, there may also be
In other storage equipment, the calling at any time of the second browser information is realized.
S2075, client are when judging that the first browser information and the second browser information are inconsistent, to second server
Second notification message is sent, includes the first browser information in second notification message, second notification message is for notifying the second clothes
Business device saves the first browser information.
The up-to-date information of browser is preserved for the ease of second server, therefore, client can be to second server
The first notification message is sent, second server is allowed to save the first browser letter in time when receiving the first notification message
Breath, to facilitate the operations such as subsequent inquiry or calling.
Wherein, which can be using the existing message transmitted between second server and client, can also
Can specifically be carried out in the form of list, mark, number etc. using the newly-increased message transmitted between second server and client
Signal, the present embodiment do not limit this, and need to only meet the second notification message for notifying second server to browse to first
Device information is saved.
S2076, client are when judging that the first browser information and the second browser information are inconsistent, according to the first browsing
The second browser information of device information update.
In the present embodiment, client can be incited somebody to action when judging that the first browser information and the second browser information are inconsistent
Second browser information is substituted for the first browser information, is protected so that the first browser information can be used as up-to-date information
It deposits, facilitates subsequent operation.
It should be noted that there is no the sequencing in timing between above-mentioned S2075 and S2076, and S2075 and S2076
It may be performed simultaneously, can also sequentially execute.
In the present embodiment, client can keep the browser in client by executing above-mentioned S2075 and S2076
Information is consistent with the information of the browser in second server, can be with so that client is when getting the first browser information
By judging whether preserve the first browser information in client, to determine whether preserve the first browsing in second server
Device information, to reduce the repetitive operation between client and second server.
Browser information processing method provided in this embodiment is not protected in the client by the automatic interception of client
When depositing the first browser information, the first browser information can be saved, and notice second server saves the first browser in time
Information, so that can store the up-to-date information of browser in client and second server, to facilitate subsequent inquiry or tune
It is operated with equal, also makes developer, tester, operation maintenance personnel etc. that can actively get each use from second server
The information for the browser that family uses, and then appropriate supporting is provided in time.
Fig. 4 is the structural schematic diagram of browser information processing unit provided by the invention, as shown in figure 4, the present embodiment
Browser information processing unit 10, the program of local service can be provided for user can be set such as webpage or application program
In ustomer premises access equipment, which can be mobile phone, tablet computer and Mobile player, be also possible to gateway, routing
The access devices such as device, the present embodiment do not limit this, can be with first server (such as web server), second server (such as
Client server and/or database server) realize be in communication with each other, for realizing in any of the above-described embodiment of the method correspond to visitor
The operation at family end, the browser information processing unit 10 may include:
Module 11 is obtained, for being obtained by browser based on by the communication connection between browser and first server
Take node package manager npm packet;
Sending module 12, for sending access request message to first server by browser, access request message is used
In requesting access to first server;
Module 12 is obtained, is also used to intercept the access response of first server transmission by npm packet in blocking module 13
When message, the first browser information of browser is obtained from client, access response message is that first server is receiving
The message sent when the access response success message that second server is sent to client, access response success message are the second clothes
The associated message of access request message success that device verifying first server of being engaged in is sent;
Sending module 12, be also used to judgment module 14 judge in client it is not stored have the first browser information when, to
Second server sends the first browser information.
Optionally, judgment module 14, for judging whether preserve the second browser information in client, the second browser
Information is the information of previously stored browser in client;When not preserving the second browser information in the client, judgement
Whether the first browser information is consistent with the second browser information;It is inconsistent in the first browser information and the second browser information
When, judge not stored in client there is the first browser information.
Optionally, sending module 12, specifically for judging not saving the second browser letter in client in judgment module 14
When breath, the first notification message is sent to second server, includes the first browser information in the first notification message, the first notice disappears
Breath is for notifying second server to save or update the first browser information.
Optionally, sending module 12 judge the first browser information and the second browsing also particularly useful in judgment module 14
When device information is inconsistent, second notification message is sent to second server, includes the first browser information in second notification message,
Second notification message is for notifying second server to save or update the first browser information.
Fig. 5 is the structural schematic diagram of browser information processing unit provided by the invention, as shown in figure 5, the present embodiment
On the basis of the apparatus structure shown in Fig. 4 of browser information processing unit 10, further includes: memory module 15.
Memory module 15, for storing when judgment module 14 judges not preserve the second browser information in client
First browser information.
Fig. 6 is the structural schematic diagram of browser information processing unit provided by the invention, as shown in fig. 6, the present embodiment
On the basis of the apparatus structure shown in Fig. 4 of browser information processing unit 10, further includes:: update module 16.
Update module 16, for judging that the first browser information and the second browser information are inconsistent in judgment module 14
When, the second browser information is updated according to the first browser information.
Optionally, the first browser information includes following at least one: the title of browser, kernel version number, attribute letter
Breath, multipurpose internet mail extensions mime type or cookies initiate mode.
Above-mentioned Fig. 2 and Fig. 3 embodiment of the method can be performed in browser information processing unit provided in an embodiment of the present invention,
Principle and technical effect are implemented, reference can be made to above method embodiment, details are not described herein again for the present embodiment.
It can carry out the division of functional module, example in the present invention to browser information processing unit according to above method example
Such as, each functional module of each function division can be corresponded to, two or more functions can also be integrated at one
It manages in module.Above-mentioned integrated module both can take the form of hardware realization, can also use the form of software function module
It realizes.It should be noted that being schematical, only a kind of logic function stroke to the division of module in various embodiments of the present invention
Point, there may be another division manner in actual implementation.
It can carry out the division of functional module, example in the present invention to browser information processing unit according to above method example
Such as, each functional module of each function division can be corresponded to, two or more functions can also be integrated at one
It manages in module.Above-mentioned integrated module both can take the form of hardware realization, can also use the form of software function module
It realizes.It should be noted that being schematical, only a kind of logic function stroke to the division of module in various embodiments of the present invention
Point, there may be another division manner in actual implementation.
Fig. 7 is the hardware structural diagram of electronic equipment provided by the invention.As shown in fig. 7, the electronic equipment 20, is used for
Realize the operation for corresponding to client in any of the above-described embodiment of the method, the electronic equipment 20 of the present embodiment may include: storage
Device 21 and processor 22;
Memory 21, for storing computer program;
Processor 22, for executing the computer program of memory storage, to realize that the browser in above-described embodiment is believed
Cease processing method.It specifically may refer to the associated description in preceding method embodiment.
Optionally, memory 21 can also be integrated with processor 22 either independent.
When device except memory 21 is independently of processor 22, electronic equipment 20 can also include:
Bus 23, for connecting memory 21 and processor 22.
Optionally, the present embodiment further include: communication interface 24, the communication interface 24 can pass through bus 23 and processor 22
Connection.Processor 22 can control communication interface 23 to realize the above-mentioned function of sending and receiving of electronic equipment 20.
Electronic equipment provided in this embodiment can be used for executing above-mentioned browser information processing method, implementation and
Technical effect is similar, and details are not described herein again for the present embodiment.
The present invention also provides a kind of computer readable storage medium, computer readable storage medium includes computer program,
Computer program is for realizing the browser information processing method in embodiment as above.
The present invention also provides a kind of communication system, which may include: first server, second server and visitor
Family end.Wherein, which can be found in the description of communication system in Fig. 1 embodiment, first server in the communication system,
Second server and client are not done superfluous herein for realizing the browser information processing method in such as figure 2 above-Fig. 3 embodiment
It states.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, apparatus embodiments described above are merely indicative, for example, the division of module, only
A kind of logical function partition, there may be another division manner in actual implementation, such as multiple modules can combine or can be with
It is integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed mutual
Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or module, can
To be electrically mechanical or other forms.
Module may or may not be physically separated as illustrated by the separation member, show as module
Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks
On unit.Some or all of the modules therein can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in one processing unit
It is that modules physically exist alone, can also be integrated in one unit with two or more modules.Above-mentioned module at
Unit both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated module realized in the form of software function module, can store and computer-readable deposit at one
In storage media.Above-mentioned software function module is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) or processor (English: processor) execute this Shen
Please each embodiment method part steps.
It should be understood that above-mentioned processor can be central processing unit (English: Central Processing Unit, letter
Claim: CPU), it can also be other general processors, digital signal processor (English: Digital SignalProcessor, letter
Claim: DSP), specific integrated circuit (English: Application Specific IntegratedCircuit, referred to as: ASIC)
Deng.General processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with invention institute
The step of disclosed method, can be embodied directly in hardware processor and execute completion, or with the hardware and software mould in processor
Block combination executes completion.
Memory may include high speed RAM memory, it is also possible to and it further include non-volatile memories NVM, for example, at least one
Magnetic disk storage can also be USB flash disk, mobile hard disk, read-only memory, disk or CD etc..
Bus can be industry standard architecture (Industry Standard Architecture, ISA) bus, outer
Portion's apparatus interconnection (Peripheral Component, PCI) bus or extended industry-standard architecture (Extended
Industry Standard Architecture, EISA) bus etc..Bus can be divided into address bus, data/address bus, control
Bus etc..For convenient for indicating, the bus in illustrations does not limit only a bus or a type of bus.
Above-mentioned computer readable storage medium can be by any kind of volatibility or non-volatile memory device or
Their combination realizes that, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) can
Erasable programmable read-only memory (EPROM) (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory,
Flash memory, disk or CD.Storage medium can be any usable medium that general or specialized computer can access.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to
The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey
When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or
The various media that can store program code such as person's CD.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (10)
1. a kind of browser information processing method characterized by comprising
Client obtains node package manager by browser based on by the communication connection between browser and first server
Npm packet;
The client sends access request message, the access request message to the first server by the browser
For requesting access to the first server;
The client is when intercepting the access response message that the first server is sent by the npm packet, from described
The first browser information of the browser is obtained in client, the access response message is that the first server is receiving
The message sent when the access response success message sent to second server to the client, the access response successfully disappears
Breath is the associated message of access request message success that the second server verifies that the first server is sent;
The client is not stored when having first browser information in judging the client, Xiang Suoshu second server
Send first browser information.
2. the method according to claim 1, wherein the client judge in the client it is not stored
State the first browser information, comprising:
The client judges the second browser information whether is preserved in the client, and second browser information is institute
State the information of previously stored browser in client;
If so, the client judges whether first browser information and second browser information are consistent;
If inconsistent, the client judges not stored in the client there is first browser information.
3. according to the method described in claim 2, it is characterized in that, the client is not stored in judging the client has
When first browser information, Xiang Suoshu second server sends first browser information, comprising:
If the client judges not saving second browser information in the client, sent out to the second server
The first notification message is sent, includes first browser information in first notification message, first notification message is used for
The second server is notified to save first browser information.
4. according to the method described in claim 2, it is characterized in that, the client is not stored in judging the client has
When first browser information, Xiang Suoshu second server sends first browser information, comprising:
If the client judges that first browser information and second browser information are inconsistent, to described second
Server sends second notification message, includes first browser information in the second notification message, second notice
Message is for notifying the second server to save first browser information.
5. according to the method described in claim 2, it is characterized in that, the method also includes:
If the client judges not preserving second browser information in the client, first browsing is stored
Device information.
6. according to the method described in claim 2, it is characterized in that, the method also includes:
If the client judges that first browser information and second browser information are inconsistent, according to described
One browser information updates second browser information.
7. method according to claim 1-6, which is characterized in that first browser information include such as down toward
Few one kind: title, kernel version number, attribute information, multipurpose internet mail extensions mime type or the cookies of browser
Initiate mode.
8. a kind of browser information processing unit characterized by comprising
Module is obtained, for obtaining node by browser based on by the communication connection between browser and first server
Package manager npm packet;
Sending module, for sending access request message, the access request to the first server by the browser
Message is for requesting access to the first server;
The acquisition module is also used to intercept the access that the first server is sent by the npm packet in blocking module
When response message, the first browser information of the browser is obtained from client, the access response message is described the
The message that one server is sent when receiving the access response success message of second server transmission to the client, it is described
Access response success message is the access request message success correlation that the second server verifies that the first server is sent
The message of connection;
The sending module is also used to judge not stored in the client there is first browser information in judgment module
When, Xiang Suoshu second server sends first browser information.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt
Claim 1-7 described in any item browser information processing methods are realized when processor executes.
10. a kind of electronic equipment characterized by comprising
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to require 1-7 described in any item via executing the executable instruction and carry out perform claim
Browser information processing method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910586482.6A CN110311978A (en) | 2019-07-01 | 2019-07-01 | Browser information processing method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910586482.6A CN110311978A (en) | 2019-07-01 | 2019-07-01 | Browser information processing method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110311978A true CN110311978A (en) | 2019-10-08 |
Family
ID=68078643
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910586482.6A Pending CN110311978A (en) | 2019-07-01 | 2019-07-01 | Browser information processing method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110311978A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112492044A (en) * | 2020-12-09 | 2021-03-12 | 恒生电子股份有限公司 | Cache data sharing method and device, equipment and computer readable storage medium |
CN112861178A (en) * | 2021-02-08 | 2021-05-28 | 视若飞信息科技(上海)有限公司 | Online collaboration method, system, equipment and storage medium based on browser |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101355565A (en) * | 2008-09-12 | 2009-01-28 | 腾讯科技(深圳)有限公司 | Method and server for providing page service for various browsers |
CN107092473A (en) * | 2016-10-31 | 2017-08-25 | 北京小度信息科技有限公司 | Desktop application development approach and equipment |
CN109347951A (en) * | 2018-10-17 | 2019-02-15 | 平安普惠企业管理有限公司 | File deriving method, device, computer equipment and computer readable storage medium |
CN109561131A (en) * | 2018-10-19 | 2019-04-02 | 深圳点猫科技有限公司 | A kind of method and electronic equipment of the downloading of language based on programming excel data |
-
2019
- 2019-07-01 CN CN201910586482.6A patent/CN110311978A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101355565A (en) * | 2008-09-12 | 2009-01-28 | 腾讯科技(深圳)有限公司 | Method and server for providing page service for various browsers |
CN107092473A (en) * | 2016-10-31 | 2017-08-25 | 北京小度信息科技有限公司 | Desktop application development approach and equipment |
CN109347951A (en) * | 2018-10-17 | 2019-02-15 | 平安普惠企业管理有限公司 | File deriving method, device, computer equipment and computer readable storage medium |
CN109561131A (en) * | 2018-10-19 | 2019-04-02 | 深圳点猫科技有限公司 | A kind of method and electronic equipment of the downloading of language based on programming excel data |
Non-Patent Citations (1)
Title |
---|
天津滨海迅腾科技集团有限公司主编: "《Angular项目实战》", 31 July 2018 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112492044A (en) * | 2020-12-09 | 2021-03-12 | 恒生电子股份有限公司 | Cache data sharing method and device, equipment and computer readable storage medium |
CN112861178A (en) * | 2021-02-08 | 2021-05-28 | 视若飞信息科技(上海)有限公司 | Online collaboration method, system, equipment and storage medium based on browser |
CN112861178B (en) * | 2021-02-08 | 2022-07-01 | 视若飞信息科技(上海)有限公司 | Online collaboration method, system, equipment and storage medium based on browser |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109547570B (en) | Service registration method, device, registration center management equipment and storage medium | |
US8745202B2 (en) | Tracking remote browser crashes via cookies | |
KR101691245B1 (en) | System and method for web service monitoring | |
CN110990205B (en) | Interface call testing method, device and computer readable storage medium | |
US11392873B2 (en) | Systems and methods for simulating orders and workflows in an order entry and management system to test order scenarios | |
US20050021736A1 (en) | Method and system for monitoring performance of distributed applications | |
US20020082821A1 (en) | Data model for automated server configuration | |
CN108306917A (en) | The register method and device of data processing method and device, micro services module | |
WO2017008581A1 (en) | Method, client, and system for testing application | |
CN110581855A (en) | Application control method and device, electronic equipment and computer readable storage medium | |
CN109639749B (en) | Cloud desktop access method, device, equipment and storage medium | |
CN108259425A (en) | The determining method, apparatus and server of query-attack | |
CN110180177B (en) | Maintenance method, device and medium of online game and electronic equipment | |
CN109688280A (en) | Request processing method, request processing equipment, browser and storage medium | |
CN107181779A (en) | Processing method, the device and system of access request | |
CN104125308B (en) | For the method and domain name analysis system of the domain name mapping of multi-user | |
US10803166B1 (en) | Automated determination of application privileges | |
CN110727589A (en) | Test method, device and equipment | |
CN104040538B (en) | A kind of the Internet, applications exchange method, apparatus and system | |
CN108768960A (en) | Method for detecting virus, device, storage medium and computer equipment | |
CN109831351B (en) | Link tracking method, device, terminal and storage medium | |
CN110311978A (en) | Browser information processing method, device, equipment and storage medium | |
CN107807830A (en) | Medical software update method and server based on cluster | |
US20050071443A1 (en) | Software platform for the delivery of services and personalized content | |
CN112000518A (en) | Application program fault risk processing method, device and system, terminal and equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191008 |