CN105704177A - UA identification method and device - Google Patents
UA identification method and device Download PDFInfo
- Publication number
- CN105704177A CN105704177A CN201410692897.9A CN201410692897A CN105704177A CN 105704177 A CN105704177 A CN 105704177A CN 201410692897 A CN201410692897 A CN 201410692897A CN 105704177 A CN105704177 A CN 105704177A
- Authority
- CN
- China
- Prior art keywords
- mark
- adaptive
- character string
- data base
- locality
- 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
- 238000000034 method Methods 0.000 title claims abstract description 34
- 230000003044 adaptive effect Effects 0.000 claims description 83
- 230000006978 adaptation Effects 0.000 claims description 66
- 238000012790 confirmation Methods 0.000 claims description 14
- 239000003607 modifier Substances 0.000 claims description 9
- 239000003795 chemical substances by application Substances 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 238000000151 deposition Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000005498 polishing Methods 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 230000003542 behavioural effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 239000004615 ingredient Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides a UA identification method comprising the following steps: acquiring an UA identifier sent by a terminal; carrying out UA identifier adapting in a default UA database; when UA identifier adapting in the default UA database fails, carrying out adapting through a custom UA database; if adapting succeeds, returning corresponding adapting information; and if adapting fails, parsing the UA identifier, and saving the parsed adapting information to the custom UA database for next adapting after parsing succeeds. Through the technical scheme of the invention, adapting information in the default UA database can be complemented, and therefore, the identification rate of the terminal is improved.
Description
Technical field
The application relates to communication technique field, particularly relates to a kind of UA recognition methods and device。
Background technology
Carry out in the process of webpage web exploitation at mobile terminal, it usually needs the accurate type identifying subscriber equipment and browser, in order to render different interfaces for different users。Identify the type of subscriber equipment and browser at present, more common mode is to obtain the UA (UserAgent in browse request, user agent) character string, then by the UA character string that gets by with UA library file, such as WURFL (WirelessUniversalResourceFile, wireless universal resource file) library file carries out adaptation and realizes。
Brand however as browser, mobile terminal constantly develops renewal, the speed that the renewal speed of UA library file does not catch up with far away browser, the brand development of mobile terminal updates, therefore user's institute's holding equipment or browser type cannot be identified accurately by UA character string, cause in web development process, interface cannot be rendered for user, thus cannot market targetedly according to the behavioural habits of user with more attractive reasonable manner。
Summary of the invention
For overcoming Problems existing in background technology, the application provides a kind of at UA recognition methods and device。
First aspect according to the embodiment of the present application, the application proposes a kind of UA recognition methods, is applied in service end, and described method includes:
Obtain the UA mark that terminal sends;
Described UA mark is carried out adaptation in acquiescence UA data base;
When the adaptive failure in described acquiescence UA adaptation data storehouse of described UA mark, carry out adaptation by self-defined UA data base;If adaptive success, return corresponding Adapted information;If adaptive failed, described UA mark is resolved, and the Adapted information parsed is stored in described self-defined UA data base in order to adaptive use next time after successfully resolved。
Optionally, if described adaptive failure, described UA mark is carried out parsing and includes:
If adaptive unsuccessful, described UA mark preserved in this locality, and is labeled as original state;
Periodically the UA mark of the original state that this locality preserves is resolved。
Optionally, described method also includes:
After described UA mark is successfully parsed, the described UA mark preserved this locality, is revised as, by original state, the state that identifies, to prevent from being repeated resolving to described UA mark。
Optionally, described method also includes:
When described UA mark is not successfully parsed, the described UA mark preserved this locality, is revised as unidentified state by original state, to prevent from being repeated resolving to described UA mark。
Optionally, the described described UA mark that this locality is preserved, original state it is revised as the state that identifies, including:
The described UA mark preserved this locality, is revised as state to be confirmed by original state;
After the described Adapted information parsed is by manual confirmation, the more described UA mark that this locality is preserved, by status modifier to be confirmed for identifying state。
Second aspect according to the embodiment of the present application, the application proposes a kind of UA and identifies device, is applied in service end, and described device includes:
Acquisition module, for the UA mark that terminal sends;
Adaptation module, for carrying out adaptation by described UA mark in acquiescence UA data base;
Parsing module, for when adaptation is failed in described acquiescence UA adaptation data storehouse for described UA mark, carrying out adaptation by self-defined UA data base;If adaptive success, return corresponding Adapted information;If adaptive failed, described UA mark is resolved, and the Adapted information parsed is stored in described self-defined UA data base in order to adaptive use next time after successfully resolved。
Optionally, described parsing module specifically for:
If adaptive unsuccessful, described UA mark preserved in this locality, and is labeled as original state;
Periodically the UA mark of the original state that this locality preserves is resolved。
Optionally, described parsing module is further used for:
After described UA mark is successfully parsed, the described UA mark preserved this locality, is revised as, by original state, the state that identifies。
Optionally, described parsing module is further used for:
When described UA mark is not successfully parsed, the described UA mark preserved this locality, is revised as unidentified state by original state。
Optionally, described parsing module is further used for:
The described UA mark preserved this locality, is revised as state to be confirmed by original state;
After the described Adapted information parsed is by manual confirmation, the more described UA mark that this locality is preserved, by status modifier to be confirmed for identifying state。
The third aspect according to the embodiment of the present application, the application proposes a kind of UA and identifies device, including:
Processor;For storing the memorizer of described processor executable;
Wherein, described processor is configured to:
Obtain the UA mark of terminal to be identified;
Described UA mark is carried out adaptation in acquiescence UA data base;
When the adaptive failure in described acquiescence UA adaptation data storehouse of described UA mark, carry out adaptation by self-defined UA data base further;If adaptive success, return corresponding Adapted information;If adaptive failed, described UA mark is resolved, and the Adapted information parsed is stored in described self-defined UA data base in order to adaptive use next time after successfully resolved。
The present invention, by increasing self-defined UA data base, when UA mark adaptive failure in giving tacit consent to UA adaptation data storehouse, then carries out adaptation by self-defined UA data base further;If adaptive success, return corresponding Adapted information;If adaptive failure, this UA mark is resolved, and after successfully resolved, analysis result is stored in described self-defined UA data base in order to adaptive use next time as corresponding Adapted information, Adapted information in acquiescence UA data base can be supplemented by the visible present invention, thus improving the recognizable rate of terminal。
Accompanying drawing explanation
Fig. 1 is the flow chart of a kind of UA recognition methods that the application one embodiment provides;
Fig. 2 is the flow chart of the another kind of UA recognition methods that the application one embodiment provides;
Fig. 3 is the schematic diagram that the UA character string that terminal is sent by the server that the application one embodiment provides carries out adaptation;
Fig. 4 is the schematic diagram that adaptive successful UA character string is resolved by the server that the application one embodiment provides;
Fig. 5 is a kind of UA that the application one embodiment provides logical structure schematic diagram identifying device;
Fig. 6 is a kind of hardware structure diagram carrying described UA identification device that the application one embodiment provides。
Detailed description of the invention
In existing realization, when carrying out, with UA library file, the type that adaptation identifies subscriber equipment and browser accurately by UA character string, in UA library file, facility information is more comprehensive, and the identification of subscriber equipment and the type of browser is then more accurate。Wherein, UA (UserAgent, user agent) it is the part in Http agreement, belong to the ingredient of header field, it is a special head of string, and server can identify, according to UA character string, the operating system and version, cpu type, browser and version, browser renders engine, browser language, browser plug-in etc. that client uses。
At present, more common UA library file is WURFL library file, WURFL library file is the XML file of a standard, it it is a free XML file increased income, collected inside major part main flow in the world moves the technical parameter of equipment, can only read yet with WURFL library file domestic consumer, it is impossible to write, cause that the brand of substantial amounts of new terminal unit and browser cannot accurate adaptation。
Therefore, can be extended on the basis of existing WURFL library file, those facility informations do not collected in WURFL library file of artificial polishing, but by the mode being manually entered, WURFL library file is extended, efficiency is very low, and the new brand of the equipment of movement, browser emerges in an endless stream, obviously cannot practical requirement by the mode of artificial polishing。
In view of this, the present invention proposes a kind of UA recognition methods, by increasing self-defined UA data base, when UA mark adaptive failure in giving tacit consent to UA adaptation data storehouse, then carries out adaptation by self-defined UA data base further;If adaptive success, return corresponding Adapted information;If adaptive failure, this UA mark is resolved, and after successfully resolved, analysis result is stored in described self-defined UA data base in order to adaptive use next time as corresponding Adapted information, Adapted information in acquiescence UA data base can be supplemented by the visible present invention, thus improving the recognizable rate of terminal。
Below by specific embodiment and in conjunction with different application example, the application is described。
Refer to Fig. 1, Fig. 1 is a kind of UA recognition methods that the application one embodiment provides, and the executive agent of the method can be service end;Said method comprising the steps of:
Step 101, obtains the UA mark that terminal sends;
Step 102, carries out adaptation by described UA mark in acquiescence UA data base;
In the present embodiment, described UA mark is UA character string, and service end is when obtaining the UA character string of terminal to be identified, it is possible to obtain the UA Configuration Request that terminal to be identified sends, and then obtains the UA character string of correspondence from this UA Configuration Request;Wherein, described UA Configuration Request can be the http request that in terminal, browser sends, and service end can get the UA character string of correspondence by receiving and analyze described http request。
When service end gets the UA character string of terminal to be identified, can this UA character string be carried out adaptive to obtain corresponding Adapted information with local UA database file, wherein said Adapted information can include the information such as terminal operating system and version, cpu type, browser and version, browser renders engine, browser language, the browser plug-in of user's use;When service end by UA character string is carried out with local UA database file adaptive obtain corresponding Adapted information after, it is possible to render no interface respectively according to the user that the Adapted information acquired is different, and by the terminal of the page synchronization after rendering to correspondence。
Wherein, in the present embodiment, can locally created self-defined UA data base, simultaneously, also can be locally downloading by the free WURFL storehouse (acquiescence UA data base) increased income, certainly by locally downloading for described WURFL storehouse, but described WURFL storehouse can not also be accessed by network when realizing。Service end is to when getting UA character string, it is possible to first carry out adaptation with WURFL library file, if adaptive failure, then carries out adaptation with self-defined UA library file again。
What deserves to be explained is, in an initial condition, described self-defined UA library file does not include any information, and now the UA character string got and described WURFL library file are only carried out adaptation by service end。
Step 103, when the adaptive failure in described acquiescence UA adaptation data storehouse of described UA mark, carries out adaptation by self-defined UA data base;If adaptive success, return corresponding Adapted information;If adaptive failed, described UA mark is resolved, and the Adapted information parsed is stored in described self-defined UA data base in order to adaptive use next time after successfully resolved;
In the present embodiment, service end is when the UA character string that will get carries out adaptation with local UA library file, adaptation is carried out firstly the need of at WURFL library file, if adaptive success, now can directly return the information such as the Adapted information corresponding with this UA character string, the operating system of such as terminal and version, cpu type, browser and version;If adaptive failure, then further this UA character string is carried out adaptation at self-defined UA library file。
If this UA character string is adaptive success in self-defined UA library file, now can directly return the Adapted information of correspondence;If this UA character string is adaptive failure in self-defined UA library file, show local UA library file is not included temporarily the Adapted information of this terminal to be identified, for this kind of UA character string, this UA character string can actively further be resolved by service end, to obtain the Adapted information of this UA character string。Certainly, when realizing, it is also possible to by manually this UA character string being resolved, no longer describe in detail。
Concrete, if the UA character string that service end gets is unsuccessful with local UA library file adaptation, service end can locally created one data base being used for depositing adaptive successfully UA character string, then adaptive unsuccessful UA character string is stored in described data base, and is labeled as original state。Wherein, the UA character string being marked as original state refers to the UA character string not yet carrying out resolving, service end is when resolving the UA character string not resolved, it is possible to periodically scan described data base, the UA character string being marked as original state in described data base is resolved。
Service end is when the UA character string of original state resolves in described data base, if successfully resolved, such as, service end is by after being analyzed UA character string, successfully get the Adapted information of counterpart terminal, then the UA character string of this successfully resolved and the Adapted information parsed can be stored in described self-defined UA library file, after facilitating the UA Configuration Request being received again by this terminal, no longer can be repeated the UA character string in this UA Configuration Request resolving, be obtained with corresponding Adapted information either directly through carrying out adaptation with local UA library file。Wherein, what deserves to be explained is, service end is referred to introduction of the prior art in the detailed process that the UA character string got is resolved, and the present embodiment no longer describes in detail。
Simultaneously, for avoiding service end when scanning described data base next time, it is repeated resolving to the UA character string that success resolves, it is possible to after UA character string in the database is successfully parsed, it is possible to immediately by original state, this UA character string is revised as the state that identifies。Owing to service end resolves just for the UA character string of original state, therefore the UA character string that success resolves is revised as, by original state, the state that identifies, can so that when the UA character string of described data base be resolved by service end again, it is possible to the effective UA character string avoiding falling successfully resolved。
Wherein, in the UA character string being successfully parsed in described data base, it is revised as the state that identifies by original state, can carry out before this UA character string and analysis result are stored in self-defined UA library file, can also carry out after this UA character string and analysis result are stored in self-defined UA library file, not be particularly limited in the present embodiment。
It is equal to, for the UA character string that end not serviced in described data base successfully resolves, for preventing service end when scanning described data base next time, it is repeated this UA character string resolving, it is possible in the database by original state, this UA character string is revised as unidentified state。For the UA character string of unidentified state, when service end scans described data base again, it is not repeated resolving to it。
In the present embodiment, service end is when the UA character string of original state resolves in data base, it is possible to there will be the situation of error resolution。Therefore, after the UA character string of original state a certain during service end is to described data base successfully resolves, before this UA character string and the Adapted information that parses are stored in self-defined UA library file, the Adapted information parsed can also be carried out manual confirmation, if errorless after manual confirmation, then this UA character string and the Adapted information that parses are stored in self-defined UA library file。
Concrete, after described UA character string is successfully parsed, in the database this UA character string can be revised as state to be confirmed by original state, manager can pass through to manage backstage and be read out by the Adapted information that the UA character string of state to be confirmed parses, then manual examination and verification are carried out, if this recognition result is errorless after manual confirmation, can by this UA character string by status modifier to be confirmed for having identified state, and this UA character string and the Adapted information that parses are stored in self-defined UA library file, in order to adaptive using next time。Certainly, if after manual confirmation, the Adapted information existing problems that this parses, the Adapted information parsed can be carried out manual amendment by manager, and after the modification by this UA character string by status modifier to be confirmed for having identified state, and this UA character string and the Adapted information that parses are stored in self-defined UA library file。
By above description it can be seen that by increasing self-defined UA data base, when UA mark adaptive failure in giving tacit consent to UA adaptation data storehouse, then carry out adaptation by self-defined UA data base further;If adaptive success, return corresponding Adapted information;If adaptive failure, this UA mark is resolved, and after successfully resolved, analysis result is stored in described self-defined UA data base in order to adaptive use next time as corresponding Adapted information, Adapted information in acquiescence UA data base can be supplemented by the visible present invention, thus improving the recognizable rate of terminal。
Refer to Fig. 2, Fig. 2 is a kind of UA recognition methods that the application one embodiment provides, and the executive agent of the method can be server;Said method comprising the steps of:
The UA mark that step 201, acquisition terminal send;
Step 202, by described UA mark acquiescence UA data base in carry out adaptation;
Step 203, when the adaptive failure in described acquiescence UA adaptation data storehouse of described UA mark, carry out adaptation by self-defined UA data base;
If the adaptive success of step 204, return corresponding Adapted information;If adaptive unsuccessful, described UA mark is preserved in this locality, be labeled as original state, and periodically the UA mark of the original state that this locality preserves resolved;
Step 205, after described UA mark is successfully parsed, the Adapted information parsed is stored in described self-defined UA data base in order to adaptive using next time。
In the present embodiment, referring to Fig. 3, described UA mark and be UA character string, service end is when obtaining the UA character string of terminal to be identified, it is possible to obtain the UA Configuration Request that terminal to be identified sends, and then obtains the UA character string of correspondence from this UA Configuration Request;Wherein, described UA Configuration Request can be the http request that in terminal, browser sends, and service end can get the UA character string of correspondence by receiving and analyze described http request。
Continuing with referring to Fig. 3, when service end gets the UA character string of terminal to be identified, can this UA character string be carried out adaptive to obtain corresponding Adapted information with local UA database file, wherein said Adapted information can include the information such as terminal operating system and version, cpu type, browser and version, browser renders engine, browser language, the browser plug-in of user's use;When service end by UA character string is carried out with local UA database file adaptive obtain corresponding Adapted information after, it is possible to render no interface respectively according to the user that the Adapted information acquired is different, and by the terminal of the page synchronization after rendering to correspondence。Wherein, in the present embodiment, can locally created self-defined UA data base, simultaneously, also can be locally downloading by the free WURFL storehouse (acquiescence UA data base) increased income, certainly by locally downloading for described WURFL storehouse, but described WURFL storehouse can not also be accessed by network when realizing。Service end is to when getting UA character string, it is possible to first carry out adaptation with WURFL library file, if adaptive failure, then carries out adaptation with self-defined UA library file again。
What deserves to be explained is, in an initial condition, described self-defined UA library file does not include any information, and now the UA character string got and described WURFL library file are only carried out adaptation by service end。
Continuing with referring to Fig. 3, service end is when the UA character string that will get carries out adaptation with local UA library file, adaptation is carried out firstly the need of at WURFL library file, if adaptive success, now can directly return the information such as the Adapted information corresponding with this UA character string, the operating system of such as terminal and version, cpu type, browser and version;If adaptive failure, then further this UA character string is carried out adaptation at self-defined UA library file。
If this UA character string is adaptive success in self-defined UA library file, now can directly return the Adapted information of correspondence;If this UA character string is adaptive failure in self-defined UA library file, show local UA library file is not included temporarily the Adapted information of this terminal to be identified, for this kind of UA character string, this UA character string can actively further be resolved by service end, to obtain the Adapted information of this UA character string。Certainly, when realizing, it is also possible to by manually this UA character string being resolved, no longer describe in detail。
Concrete, if the UA character string that service end gets is unsuccessful with local UA library file adaptation, service end can locally created one data base being used for depositing adaptive successfully UA character string, then adaptive unsuccessful UA character string is stored in described data base, and is labeled as original state。Wherein, the UA character string being marked as original state refers to the UA character string not yet carrying out resolving, service end is when resolving the UA character string not resolved, it is possible to periodically scan described data base, the UA character string being marked as original state in described data base is resolved。
Refer to Fig. 4, service end is when the UA character string of original state resolves in described data base, if successfully resolved, such as, service end is by after being analyzed UA character string, successfully get the Adapted information of counterpart terminal, then the UA character string of this successfully resolved and the Adapted information parsed can be stored in described self-defined UA library file, after facilitating the UA Configuration Request being received again by this terminal, can no longer be repeated the UA character string in this UA Configuration Request resolving, it is obtained with corresponding Adapted information either directly through carrying out adaptation with local UA library file。Wherein, what deserves to be explained is, service end is referred to introduction of the prior art in the detailed process that the UA character string got is resolved, and the present embodiment no longer describes in detail。
Simultaneously, for avoiding service end when scanning described data base next time, it is repeated resolving to the UA character string that success resolves, it is possible to after UA character string in the database is successfully parsed, it is possible to immediately by original state, this UA character string is revised as the state that identifies。Owing to service end resolves just for the UA character string of original state, therefore the UA character string that success resolves is revised as, by original state, the state that identifies, can so that when the UA character string of described data base be resolved by service end again, it is possible to the effective UA character string avoiding falling successfully resolved。
Wherein, in the UA character string being successfully parsed in described data base, it is revised as the state that identifies by original state, can carry out before this UA character string and analysis result are stored in self-defined UA library file, can also carry out after this UA character string and analysis result are stored in self-defined UA library file, not be particularly limited in the present embodiment。
It is equal to, for the UA character string that end not serviced in described data base successfully resolves, for preventing service end when scanning described data base next time, it is repeated this UA character string resolving, it is possible in the database by original state, this UA character string is revised as unidentified state。For the UA character string of unidentified state, when service end scans described data base again, it is not repeated resolving to it。
In the present embodiment, service end is when the UA character string of original state resolves in data base, it is possible to there will be the situation of error resolution。Therefore, after the UA character string of original state a certain during service end is to described data base successfully resolves, before this UA character string and the Adapted information that parses are stored in self-defined UA library file, the Adapted information parsed can also be carried out manual confirmation, if errorless after manual confirmation, then this UA character string and the Adapted information that parses are stored in self-defined UA library file。
Concrete, after described UA character string is successfully parsed, in the database this UA character string can be revised as state to be confirmed by original state, manager can pass through to manage backstage and be read out by the Adapted information that the UA character string of state to be confirmed parses, then manual examination and verification are carried out, if this recognition result is errorless after manual confirmation, can by this UA character string by status modifier to be confirmed for having identified state, and this UA character string and the Adapted information that parses are stored in self-defined UA library file, in order to adaptive using next time。Certainly, if after manual confirmation, the Adapted information existing problems that this parses, the Adapted information parsed can be carried out manual amendment by manager, and after the modification by this UA character string by status modifier to be confirmed for having identified state, and this UA character string and the Adapted information that parses are stored in self-defined UA library file。
By above description it can be seen that by increasing self-defined UA data base, when UA mark adaptive failure in giving tacit consent to UA adaptation data storehouse, then carry out adaptation by self-defined UA data base further;If adaptive success, return corresponding Adapted information;If adaptive failure, this UA mark is resolved, and after successfully resolved, analysis result is stored in described self-defined UA data base in order to adaptive use next time as corresponding Adapted information, Adapted information in acquiescence UA data base can be supplemented by the visible present invention, thus improving the recognizable rate of terminal。
Simultaneously, the present invention is by being revised as state to be confirmed by the UA character string of successfully resolved by original state, confirmed by the Adapted information manually the UA character string being marked as state to be confirmed parsed, after the described Adapted information parsed is errorless by manual confirmation, again corresponding UA character string and the Adapted information that parses are stored in self-defined UA library file, effectively avoid the situation that adaptive unsuccessful UA character string occurs resolving mistake。
Additionally, the present invention is after UA character string is successfully parsed, by the UA being successfully parsed character string is revised as, by original state, the state that identifies, owing to service end is when resolving adaptive successful UA character string, resolve only for the UA character string being marked as original state, it can thus be avoided the UA character string that success resolves is repeated resolving by service end。
Corresponding with said method embodiment, present invention also provides a kind of UA and identify the embodiment of device。Referring to Fig. 5, the present invention also proposes a kind of UA and identifies device 50, is applied to service end, for instance described service end can be server;Wherein, referring to Fig. 6, as the operation carrier of the application device 50, described service end is typically at least includes CPU, internal memory, nonvolatile memory, network interface and internal bus etc.;Implemented in software for example, apparatus of the present invention 50 it is generally understood that the computer program being carried in internal memory, runs, by CPU, the logic device that the software and hardware being subsequently formed combines;Described device 50 includes:
Acquisition module 501, for the UA mark that terminal sends;
Adaptation module 502, for carrying out adaptation by described UA mark in acquiescence UA data base;
Parsing module 503, for when adaptation is failed in described acquiescence UA adaptation data storehouse for described UA mark, carrying out adaptation by self-defined UA data base;If adaptive success, return corresponding Adapted information;If adaptive failed, described UA mark is resolved, and the Adapted information parsed is stored in described self-defined UA data base in order to adaptive use next time after successfully resolved。
In the present embodiment, described parsing module 503 specifically for:
If adaptive unsuccessful, described UA mark preserved in this locality, and is labeled as original state;
Periodically the UA mark of the original state that this locality preserves is resolved。
In the present embodiment, described parsing module 503 is further used for:
After described UA mark is successfully parsed, the described UA mark preserved this locality, is revised as, by original state, the state that identifies。
In the present embodiment, described parsing module 503 is further used for:
When described UA mark is not successfully parsed, the described UA mark preserved this locality, is revised as unidentified state by original state。
In the present embodiment, described parsing module 503 is further used for:
The described UA mark preserved this locality, is revised as state to be confirmed by original state;
After the described Adapted information parsed is by manual confirmation, the more described UA mark that this locality is preserved, by status modifier to be confirmed for identifying state。
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part illustrates referring to the part of embodiment of the method。Device embodiment described above is merely schematic, the wherein said module illustrated as separating component can be or may not be physically separate, the parts shown as module can be or may not be physical module, namely may be located at a place, or can also be distributed on multiple mixed-media network modules mixed-media。Some or all of module therein can be selected according to the actual needs to realize the purpose of the application scheme。Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement。
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all within the spirit and principles in the present invention, any amendment of making, equivalent replacement, improvement etc., should be included within the scope of protection of the invention。
Present invention also provides the embodiment of a kind of server。
This server includes: processor, and for storing the memorizer of described processor executable;Further, this server can also include input/output interface, network interface, various hardware etc.。
Described server can be configured to:
Obtain the UA mark that terminal sends;
Described UA mark is carried out adaptation in acquiescence UA data base;
When the adaptive failure in described acquiescence UA adaptation data storehouse of described UA mark, carry out adaptation by self-defined UA data base;If adaptive success, return corresponding Adapted information;If adaptive failed, described UA mark is resolved, and the Adapted information parsed is stored in described self-defined UA data base in order to adaptive use next time after successfully resolved。
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to other embodiment of the application。The application is intended to any modification of the application, purposes or adaptations, and these modification, purposes or adaptations are followed the general principle of the application and include the undocumented known general knowledge in the art of the application or conventional techniques means。Description and embodiments is considered only as exemplary, and the true scope of the application and spirit are pointed out by claim below。
It should be appreciated that the application is not limited to precision architecture described above and illustrated in the accompanying drawings, and various amendment and change can carried out without departing from the scope。Scope of the present application is only limited by appended claim。
Claims (11)
1. a UA recognition methods, is applied in service end, it is characterised in that described method includes:
Obtain the UA mark that terminal sends;
Described UA mark is carried out adaptation in acquiescence UA data base;
When the adaptive failure in described acquiescence UA adaptation data storehouse of described UA mark, carry out adaptation by self-defined UA data base;If adaptive success, return corresponding Adapted information;If adaptive failed, described UA mark is resolved, and the Adapted information parsed is stored in described self-defined UA data base in order to adaptive use next time after successfully resolved。
2. method according to claim 1, it is characterised in that if described adaptive failure, described UA mark is carried out parsing and includes:
If adaptive unsuccessful, described UA mark preserved in this locality, and is labeled as original state;
Periodically the UA mark of the original state that this locality preserves is resolved。
3. method according to claim 2, it is characterised in that described method also includes:
After described UA mark is successfully parsed, the described UA mark preserved this locality, is revised as, by original state, the state that identifies, to prevent from being repeated resolving to described UA mark。
4. method according to claim 3, it is characterised in that described method also includes:
When described UA mark is not successfully parsed, the described UA mark preserved this locality, is revised as unidentified state by original state, to prevent from being repeated resolving to described UA mark。
5. method according to claim 3, it is characterised in that the described described UA mark preserved this locality, is revised as, by original state, the state that identifies, including:
The described UA mark preserved this locality, is revised as state to be confirmed by original state;
After the described Adapted information parsed is by manual confirmation, the more described UA mark that this locality is preserved, by status modifier to be confirmed for identifying state。
6. UA identifies a device, is applied in service end, it is characterised in that described device includes:
Acquisition module, for obtaining the UA mark that terminal sends;
Adaptation module, for carrying out adaptation by described UA mark in acquiescence UA data base;
Parsing module, for when adaptation is failed in described acquiescence UA adaptation data storehouse for described UA mark, carrying out adaptation by self-defined UA data base;If adaptive success, return corresponding Adapted information;If adaptive failed, described UA mark is resolved, and the Adapted information parsed is stored in described self-defined UA data base in order to adaptive use next time after successfully resolved。
7. device according to claim 6, it is characterised in that described parsing module specifically for:
If adaptive unsuccessful, described UA mark preserved in this locality, and is labeled as original state;
Periodically the UA mark of the original state that this locality preserves is resolved。
8. device according to claim 7, it is characterised in that described parsing module is further used for:
After described UA mark is successfully parsed, the described UA mark preserved this locality, is revised as, by original state, the state that identifies。
9. device according to claim 8, it is characterised in that described parsing module is further used for:
When described UA mark is not successfully parsed, the described UA mark preserved this locality, is revised as unidentified state by original state。
10. device according to claim 8, it is characterised in that described parsing module is further used for:
The described UA mark preserved this locality, is revised as state to be confirmed by original state;
After the described Adapted information parsed is by manual confirmation, the more described UA mark that this locality is preserved, by status modifier to be confirmed for identifying state。
11. a UA identifies device, it is characterised in that including:
Processor;For storing the memorizer of described processor executable;
Wherein, described processor is configured to:
Obtain the UA mark that terminal sends;
Described UA mark is carried out adaptation in acquiescence UA data base;
When the adaptive failure in described acquiescence UA adaptation data storehouse of described UA mark, carry out adaptation by self-defined UA data base;If adaptive success, return corresponding Adapted information;If adaptive failed, described UA mark is resolved, and the Adapted information parsed is stored in described self-defined UA data base in order to adaptive use next time after successfully resolved。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410692897.9A CN105704177A (en) | 2014-11-26 | 2014-11-26 | UA identification method and device |
PCT/CN2015/094793 WO2016082696A1 (en) | 2014-11-26 | 2015-11-17 | Ua recognition method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410692897.9A CN105704177A (en) | 2014-11-26 | 2014-11-26 | UA identification method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105704177A true CN105704177A (en) | 2016-06-22 |
Family
ID=56073589
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410692897.9A Pending CN105704177A (en) | 2014-11-26 | 2014-11-26 | UA identification method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105704177A (en) |
WO (1) | WO2016082696A1 (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106453275A (en) * | 2016-09-23 | 2017-02-22 | 成都知道创宇信息技术有限公司 | Method for identifying character verification code in Web loophole scanner |
CN107025145A (en) * | 2016-11-09 | 2017-08-08 | 阿里巴巴集团控股有限公司 | Error code analysis method and device |
CN108737328A (en) * | 2017-04-14 | 2018-11-02 | 新浪网技术(中国)有限公司 | A kind of browser client acts on behalf of recognition methods, system and device |
CN109117172A (en) * | 2017-06-23 | 2019-01-01 | 中国移动通信集团广东有限公司 | A kind of method and device of the terminal versions number identification of target terminal |
CN109246163A (en) * | 2017-07-10 | 2019-01-18 | 中国电信股份有限公司 | End message recognition methods and device |
CN109691023A (en) * | 2017-05-25 | 2019-04-26 | 微软技术许可有限责任公司 | Resolver |
CN115442429A (en) * | 2022-08-01 | 2022-12-06 | 北京健康之家科技有限公司 | User agent processing method and device, computer equipment and storage medium |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10060644B2 (en) | 2015-12-31 | 2018-08-28 | Echostar Technologies International Corporation | Methods and systems for control of home automation activity based on user preferences |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050273346A1 (en) * | 2004-06-02 | 2005-12-08 | Frost Richard N | Real property information management system and method |
CN101964813A (en) * | 2010-09-21 | 2011-02-02 | 北京网康科技有限公司 | Method and system for detecting terminal information in GPRS network |
US20110166988A1 (en) * | 2004-12-16 | 2011-07-07 | Coulter David B | System and method for managing consumer information |
CN102637211A (en) * | 2012-04-12 | 2012-08-15 | 华为技术有限公司 | Method, device and system for updating terminal adapted database |
EP2744213A1 (en) * | 2012-12-11 | 2014-06-18 | Gurulogic Microsystems OY | Encoder, decoder and methods of encoding and decoding source data utilizing one or more databases |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20050120221A (en) * | 2004-06-18 | 2005-12-22 | 에스케이 텔레콤주식회사 | System and method for furnishing the user agent profile using cache memory |
-
2014
- 2014-11-26 CN CN201410692897.9A patent/CN105704177A/en active Pending
-
2015
- 2015-11-17 WO PCT/CN2015/094793 patent/WO2016082696A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050273346A1 (en) * | 2004-06-02 | 2005-12-08 | Frost Richard N | Real property information management system and method |
US20110166988A1 (en) * | 2004-12-16 | 2011-07-07 | Coulter David B | System and method for managing consumer information |
CN101964813A (en) * | 2010-09-21 | 2011-02-02 | 北京网康科技有限公司 | Method and system for detecting terminal information in GPRS network |
CN102637211A (en) * | 2012-04-12 | 2012-08-15 | 华为技术有限公司 | Method, device and system for updating terminal adapted database |
EP2744213A1 (en) * | 2012-12-11 | 2014-06-18 | Gurulogic Microsystems OY | Encoder, decoder and methods of encoding and decoding source data utilizing one or more databases |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106453275A (en) * | 2016-09-23 | 2017-02-22 | 成都知道创宇信息技术有限公司 | Method for identifying character verification code in Web loophole scanner |
CN107025145A (en) * | 2016-11-09 | 2017-08-08 | 阿里巴巴集团控股有限公司 | Error code analysis method and device |
CN108737328A (en) * | 2017-04-14 | 2018-11-02 | 新浪网技术(中国)有限公司 | A kind of browser client acts on behalf of recognition methods, system and device |
CN109691023A (en) * | 2017-05-25 | 2019-04-26 | 微软技术许可有限责任公司 | Resolver |
CN109691023B (en) * | 2017-05-25 | 2021-11-30 | 微软技术许可有限责任公司 | Resolver |
US11429671B2 (en) | 2017-05-25 | 2022-08-30 | Microsoft Technology Licensing, Llc | Parser for parsing a user agent string |
CN109117172A (en) * | 2017-06-23 | 2019-01-01 | 中国移动通信集团广东有限公司 | A kind of method and device of the terminal versions number identification of target terminal |
CN109246163A (en) * | 2017-07-10 | 2019-01-18 | 中国电信股份有限公司 | End message recognition methods and device |
CN109246163B (en) * | 2017-07-10 | 2022-02-08 | 中国电信股份有限公司 | Terminal information identification method and device |
CN115442429A (en) * | 2022-08-01 | 2022-12-06 | 北京健康之家科技有限公司 | User agent processing method and device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2016082696A1 (en) | 2016-06-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105704177A (en) | UA identification method and device | |
US10839038B2 (en) | Generating configuration information for obtaining web resources | |
CN110688598B (en) | Service parameter acquisition method and device, computer equipment and storage medium | |
US20150058407A1 (en) | Systems, methods, and apparatuses for implementing the simultaneous display of multiple browser client cursors at each browser client common to a shared browsing session | |
CN102761554B (en) | Method, device and system for pushing information to client | |
CN108829838B (en) | Batch processing method of account information and server | |
CN106649446B (en) | Information pushing method and device | |
CN103955495B (en) | The method for down loading and device of page child resource | |
CN105893075A (en) | Update method and device of application | |
CN105094777B (en) | Realize the method and device for applying screenshotss | |
CN110213113B (en) | WEB configuration management method of base station and base station | |
CN109714406B (en) | Method and equipment for processing resource description file and acquiring page resource | |
CN109918553B (en) | Method and device for crawling data by mobile terminal, mobile terminal and storage medium | |
CN115208951B (en) | Request processing method, request processing device, electronic equipment and computer readable storage medium | |
CN105653531B (en) | Data extraction method and device | |
CN104063475A (en) | User-defined list processing method and device | |
CN104023046A (en) | Mobile terminal recognition method and device | |
CN102769625A (en) | Client-side Cookie information acquisition method and device | |
CN103793516A (en) | Method and device for obtaining URL icon | |
CN114422576A (en) | Session cleaning method and device, computer equipment and readable storage medium | |
CN106850756B (en) | Method and system for realizing communication between web page and local application | |
CN110618934A (en) | Front-end automatic test debugging method and device and computer readable storage medium | |
KR101249449B1 (en) | Apparatus for web platform verification tool and control method thereof | |
CN110224973B (en) | Multi-server parallel implementation method based on programming game, electronic equipment and medium | |
CN117193907B (en) | Page processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160622 |
|
RJ01 | Rejection of invention patent application after publication |