CN101389089B - Mobile terminal adaptation processing method and apparatus based on WAP system - Google Patents
Mobile terminal adaptation processing method and apparatus based on WAP system Download PDFInfo
- Publication number
- CN101389089B CN101389089B CN2008102259602A CN200810225960A CN101389089B CN 101389089 B CN101389089 B CN 101389089B CN 2008102259602 A CN2008102259602 A CN 2008102259602A CN 200810225960 A CN200810225960 A CN 200810225960A CN 101389089 B CN101389089 B CN 101389089B
- Authority
- CN
- China
- Prior art keywords
- wap
- information
- coded system
- portable terminal
- server
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a mobile terminal adaptation processing method based on the WAP system, comprising: A, when the mobile terminal requires to access to the WAP system page, uploading the encoding mode supported by the mobile terminal; B, providing the WAP system with the server of the page, encoding and posting back the information identification tag according to the; C, when the mobile terminal requires to access to other pages of the WAP system, uploading the information identification tag; D, providing the WAP system with the encoding mode used for the server of other pages for identifying the information identification tag, encoding the page post back to the mobile terminal according to the identified encoding mode. The invention is capable of implementing the encoding mode through identifying the information identification tag so as to perform mobile adaptation processing.
Description
Technical field
The present invention relates to portable terminal adaptation processing field, be meant a kind of mobile terminal adaptation processing method and device especially based on the WAP system.
Background technology
Wireless application protocol (wap) is the agreement that mobile phone or other wireless terminal access internet are adopted, and through WAP service, can realize through surfing Internet with cell phone and browses the webpage that the WAP system is provided.
During for the mobile phone access WAP system of different model,, therefore need carry out adaptation processing to the information that the information that returns to mobile phone terminal or mobile phone terminal are submitted to because the coding of the character that mobile phone adopted of different model or image is different.Specifically; Adaptation processing is meant when the user uses wireless communication networks visit WAP system through mobile phone terminal; Server is discerned mobile phone terminal; And according to recognition result to returning to wanting content displayed conversion, adjusting processing of mobile phone terminal, and the content that mobile phone terminal is submitted to server changed, adjusts processing, with the service that guarantees that mobile phone terminal can normal browsing uses the WAP system to provide.
Present adaptation processing mainly comprises following dual mode:
A kind of is outside the WAP system, to dispose acting server layer software.Acting server layer software is in mobile phone terminal visit during based on the WAP system of wireless network; Tackle the USER-AGENT field information (text string when USER-AGENT is meant customer access network in HTTP request protocol information in the solicited message of obtaining the mobile phone transmission; Put down in writing the characteristic information of mobile phone terminal, comprised mobile phone logo, mobile phone brand etc.).Then according to the adaptive storehouse of putting down in writing on the mobile phone characteristic information inquiry proxy server in the USER-AGENT information of mobile phone; Obtain the information encoded that this mobile phone terminal of writing down in the adaptive storehouse of mobile phone is supported; Adopt the coding obtained that mobile phone terminal is sent and send to the mobile phone terminal relevant information to the relevant information of WAP system and WAP system and carry out conversion process, thereby realize the adaptive purpose of mobile phone.
Another kind is to adopt regarded as output controlling instrument class libraries.The principle of this mode and first kind of mode are basic identical, and difference is that employing instrument class library replacement acting server removes to carry out corresponding aforesaid operations.Employing instrument class library needn't be established acting server in addition.
But; Because the USER-AGENT field in the solicited message that some mobile phone terminal sent can not correctly identify the characteristic of this mobile phone; And because part mobile operator shields the USER-AGENT information in the solicited message that mobile phone terminal sends; Cause mobile phone terminal in the process of visit WAP system, the USER-AGENT information of obtaining that appearance can't be correct causes occurring the situation that the mobile phone adaptation processing lost efficacy.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of mobile terminal adaptation processing method and device based on the WAP system, to realize that coded system through the identifying information identification label is to the mobile phone adaptation processing.
The mobile terminal adaptation processing method based on the WAP system that the present invention passes through comprises: when A, mobile terminal request are visited the WAP system page, upload the coded system that portable terminal is supported; B, the coded system that provides the server of this page of WAP system to support according to portable terminal are encoded to information identification tag and are returned; When C, mobile terminal request are visited other pages of WAP system, upload said information identification tag; D, provide the server of other pages of WAP system to discern the coded system that said information identification tag adopts, encode for the page of portable terminal to passback according to the coded system that identifies.
Wherein, said the uploading of steps A or C is to carry through described request to upload.
Wherein, the said passback of step B is in the page of the server passback portable terminal of this page of the said WAP of providing system, to carry passback.
Wherein, the step of the coded system of the said information identification tag employing of the said identification of step D comprises: use more than one coded system successively the coding of said information identification tag to be discerned processing; Handle the coded system that correct coded system adopts as institute's identified information identification label with identification.
Preferable, said coded system comprises: GB2312, UTF-8 or UCS2 coded system.
Preferable, further comprise: during the said recognition failures of step D, from described request, obtain USER-AGENT information; Portable terminal adaptation data storehouse according to the server stores of other pages of the said WAP of providing of mobile terminal features information inquiry system of putting down in writing in the USER-AGENT information; The coded system that the said portable terminal of record is supported from portable terminal adaptation data storehouse is as the coded system that identifies.
In addition, also comprise behind the step D: the coded system that is identified is saved in the queued session information of portable terminal; During webpage that the server of other pages of the said WAP of providing of mobile terminal accessing system provides, call the coded system of preserving in the described request session information as the coded system that is identified.
Portable terminal adaptation processing device based on the WAP system provided by the invention comprises:
First solicited message is submitted module (401) to, when being used for the mobile terminal request visit WAP system page, uploads the coded system that portable terminal is supported; The information identification tag manufacturing module, (402), the coded system that is used to provide the server of this page of WAP system to support according to portable terminal is encoded to information identification tag and is returned; Second solicited message is submitted module (403) to, when being used for other pages of mobile terminal request visit WAP system, uploads said information identification tag; Code identification processing module (404) is used to provide the server of other pages of WAP system to discern the coded system that said information identification tag adopts, and encodes for the page of portable terminal according to the coded system that identifies to passback.
Preferable, further comprise: USER-AGENT information acquisition module (405) is used for when the server recognition failures of other pages of WAP system is provided, from described request, obtaining USER-AGENT information; Portable terminal adaptation data library inquiry module (406), the portable terminal adaptation data storehouse of the server stores of other pages of the said WAP of providing of mobile terminal features information inquiry system that are used for putting down in writing according to USER-AGENT information; Code identification module (407), the coded system that the said portable terminal that is used for putting down in writing from portable terminal adaptation data storehouse is supported is as the coded system that identifies.
Wherein, also comprise: queued session information storage module (408) is used for the coded system that is identified is saved in the queued session information of portable terminal; Queued session information reading module (409) when being used for webpage that the server of other pages of the said WAP of providing of mobile terminal accessing system provides, calls the coded system of preserving in the described request session information as the coded system that is identified.
By on can find out that the coded system that the present invention can be through the identifying information identification label is to the mobile phone adaptation processing.
The process simple and fast of identifying information identification label has reduced response time of mobile phone terminal user accesses network.
Information identification tag can as carrying in page info, the solicited message, not influence existing page access flow process by existing information, and it is convenient to realize.
To not adopting the mode obtain USER-AGENT information to carry out the mobile phone adaptation processing, better guarantee the success of mobile phone adaptation processing through the mobile phone that the coded system of identifying information identification label is carried out the special type of mobile phone adaptation processing.
The present invention can not rely on merely and obtain USER-AGENT information and carry out the mobile phone adaptation processing.
Description of drawings
Fig. 1 is the adaptation processing flow chart of mobile phone terminal access system;
Fig. 2 is a special type mobile phone adaptation data library initialization flow chart;
Fig. 3 is a data structure schematic diagram in the mobile phone adaptation data storehouse;
Fig. 4 is the module map based on the mobile phone adaptation processing device of WAP system.
Embodiment
The present invention is when the homepage of mobile phone terminal request visit WAP system; Identify the coded system that this mobile phone terminal that the solicited message in the homepage request of mobile phone terminal visit WAP system puts down in writing is supported by the server that homepage is provided; And adopt the discernible coded system of user that the information of returning the mobile phone terminal demonstration is encoded, adopt same coded system that the character in one information identification tag is carried out coding transmission simultaneously and give mobile phone terminal.When carrying information identification tag in the user scope WAP system during other server requests webpages, but adopt adaptive this mobile phone terminal of coded system of character in the identifying information identification label by the server of being visited.
Referring to accompanying drawing, the present invention is elaborated.Fig. 1 shows the content adaptation conversion process flow chart of mobile phone access terminal access, and is as shown in the figure, may further comprise the steps:
Specifically; Obtain described request information by the system filtration device; And from the header of this solicited message, read Accept-Chartset field attribute information; Wherein the Accept-Charset field is a character string that indicates with this title, is used to indicate the coded system of the character set that mobile phone terminal supports, for example this character content be " utf-8; Big5; Euc-jp; Euc-kr; Gb2312; Gbk " time represent that mobile phone terminal supports these six kinds of codings.
Said identifying information label is the self-defining specific information that is used to discern of system.For example can be with " keyprop=identifying information " as information identification tag, this label adopts above-mentioned selected coded system to encode, and the type of its equal sign back can be character string type.
Wherein, concrete code identification process can adopt following step:
At first, system server obtains information identification tag with a kind of coding standard; For example at first obtain information identification tag with the ISO8859-1 coding.
Whether the coded system of the information identification tag that system server identification is obtained is correct, if correct, the coded system ISO8869-1 that identifies is saved in the system.If incorrect, the coded system that gets access to is converted into the UTF-8 encoding process, whether the coded system after inspection is obtained is correct, if the coding UTF-8 that correctly will identify is saved in the system;
If still incorrect, the coded system that gets access to is converted into the GB2312 encoding process, whether the coded system after inspection is obtained is correct, if the coding GB2312 that correctly will identify is saved in the system;
If still incorrect, the coded system that gets access to is converted into the UCS2 encoding process, whether the coded system after inspection is obtained is correct, if the coding UCS2 that correctly will identify is saved in the system;
If still do not identify, then obtain information identification tag with the UCS2 coding, use the content after the inspection of different coding standard is obtained whether correct more successively.
General System comprises GB2312, three kinds of coding standards of UTF-8 and UCS2, and when adopting three kinds of coding standards to obtain information identification tag and discerning, system server can't identify information identification tag, then adopts other mode execution in step 106.
According to the USER-AGENT information of obtaining, analyze the mobile phone characteristic information in the USER-AGENT information, inquire about the mobile phone adaptation data storehouse of the server stores of institute's accessed web page according to the mobile phone characteristic information that analysis obtains,
Whether if " support " to be denoted as in the Query Result " being ", the server of expression institute accessed web page is supported adaptation processing, from mobile phone adaptation data storehouse, obtains the adaptation processing parameter and carries out adaptation processing;
If " whether support " to be denoted as in the Query Result " denying "; The server of expression institute accessed web page is not supported adaptation processing; Error description information according in the adaptive storehouse of mobile phone is returned the mobile phone terminal information; The chained address that comprises system, the user can carry out the network service page through the chained address, carries out corresponding operating according to information;
If there is not this mobile phone terminal model in mobile phone adaptation data storehouse, return the mobile phone terminal information, inform that this mobile phone terminal can not carry out access to netwoks.
Step 107, information identification tag correctly discern back or inquiry mobile phone adaptation data storehouse result for support adaptive after, the server of institute's accessed web page is saved in the coded system of the submission content that the mobile phone terminal user supports in the queued session information.When mobile phone terminal continues webpage that this server of visit provides, the just direct coded system in the invoke user queued session information.
By on can find out; The present invention is when the webpage that the server of mobile phone terminal visit WAP system provides; Carry the information identification tag that the WAP system home page is provided; When visiting other webpages, pairing server can at first be discerned coded system and the adaptive mobile phone terminal of the trial said coded system of employing that said information identification tag adopts, and has reduced the dependence to the USER-AGENT field.And mobile phone adaptation data storehouse need not set up and safeguard to this mode, reduced departmental cost.
Wherein, for the mobile phone adaptation data storehouse of mentioning in the above-mentioned steps 106, setting up this database during owing to employing USER-AGENT mode is prior art, therefore only does summary description below.Related data to known special type mobile phone is carried out initialization, sets up mobile phone adaptation data storehouse, calls when supplying special type mobile phone terminal user to visit.Fig. 2 is the adaptive database data initialization flowchart of special type mobile phone, and is as shown in the figure, following for the flow process of mobile phone adaptation data library initialization:
The coded system that the mobile phone terminal user supports, for example: " utf-8; Big5; Euc-jp; Euc-kr; Gb2312; Gbk ".The link that provides from the X-Wap-Profile attribute information; Visit mobile phone feature configuration fileinfo, therefrom extraction system buffer memory, support coding and application format information: prf:CcppAccept, prf:CcppAccept-Charset, prf:WmlDeckSize attribute information.
Fig. 4 is that said device as shown in the figure comprises based on the module map of the mobile phone adaptation processing device of WAP system:
First solicited message is submitted module 401 to, when being used for the mobile terminal request visit WAP system page, uploads the coded system that portable terminal is supported;
Information identification tag manufacturing module 402, the coded system that is used to provide the server of this page of WAP system to support according to portable terminal is encoded to information identification tag and is returned;
Second solicited message is submitted module 403 to, when being used for other pages of mobile terminal request visit WAP system, uploads said information identification tag;
Code identification processing module 404 is used to provide the server of other pages of WAP system to discern the coded system that said information identification tag adopts, and encodes for the page of portable terminal according to the coded system that identifies to passback;
USER-AGENT information acquisition module 405 is used for when the server recognition failures of other pages of WAP system is provided, from the solicited message of portable terminal, obtaining USER-AGENT information;
Portable terminal adaptation data library inquiry module 406, the portable terminal adaptation data storehouse of the server stores of other pages of the said WAP of providing of mobile terminal features information inquiry system that are used for putting down in writing according to USER-AGENT information;
Code identification module 407, the coded system that the said portable terminal that is used for putting down in writing from portable terminal adaptation data storehouse is supported is as the coded system that identifies;
Queued session information storage module 408 is used for the coded system that is identified is saved in the queued session information of portable terminal;
Queued session information reading module 409 when being used for webpage that the server of other pages of the said WAP of providing of mobile terminal accessing system provides, calls the coded system of preserving in the described request session information as the coded system that is identified.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle; Any modification of being done, be equal to replacement, improvement etc.; For example, through the described information identification tag of other message transmission, maybe this information identification tag is transmitted separately; Perhaps content in the modification information identification label etc. all should be included within protection scope of the present invention.
Claims (10)
1. the mobile terminal adaptation processing method based on the WAP system is characterized in that, comprising:
When A, mobile terminal request are visited the WAP system page, upload the coded system that portable terminal is supported;
B, the coded system that provides the server of this page of WAP system to support according to portable terminal are encoded to information identification tag and are returned;
When C, mobile terminal request are visited other pages of WAP system, upload said information identification tag;
D, provide the server of other pages of WAP system to discern the coded system that said information identification tag adopts, encode for the page of portable terminal to passback according to the coded system that identifies;
Wherein, said WAP is a WAP.
2. method according to claim 1 is characterized in that, said the uploading of steps A or C is to carry through described request to upload.
3. method according to claim 1 is characterized in that, the said passback of step B is in the page of the server passback portable terminal of this page of the said WAP of providing system, to carry passback.
4. method according to claim 1 is characterized in that, the step of the coded system that the said information identification tag of the said identification of step D adopts comprises:
Use more than one coded system successively the coding of said information identification tag to be discerned processing;
Handle the coded system that correct coded system adopts as institute's identified information identification label with identification.
5. method according to claim 4 is characterized in that, said coded system comprises:
GB2312, UTF-8 or UCS2 coded system.
6. method according to claim 1 is characterized in that, further comprises: during the said recognition failures of step D, from described request, obtain USER-AGENT information;
Portable terminal adaptation data storehouse according to the server stores of other pages of the said WAP of providing of mobile terminal features information inquiry system of putting down in writing in the USER-AGENT information;
The coded system of being supported with the said portable terminal of portable terminal adaptation data storehouse record is as the coded system that identifies.
7. method according to claim 1 is characterized in that, also comprises behind the step D:
The coded system that is identified is saved in the queued session information of portable terminal;
During webpage that the server of other pages of the said WAP of providing of mobile terminal accessing system provides, call the coded system of preserving in the described request session information as the coded system that is identified.
8. the portable terminal adaptation processing device based on the WAP system is characterized in that, comprising:
First solicited message is submitted module (401) to, when being used for the mobile terminal request visit WAP system page, uploads the coded system that portable terminal is supported;
The information identification tag manufacturing module, (402), the coded system that is used to provide the server of this page of WAP system to support according to portable terminal is encoded to information identification tag and is returned;
Second solicited message is submitted module (403) to, when being used for other pages of mobile terminal request visit WAP system, uploads said information identification tag;
Code identification processing module (404) is used to provide the server of other pages of WAP system to discern the coded system that said information identification tag adopts, and encodes for the page of portable terminal according to the coded system that identifies to passback;
Wherein, said WAP is a WAP.
9. device according to claim 8 is characterized in that, further comprises:
USER-AGENT information acquisition module (405) is used for when the server recognition failures of other pages of WAP system is provided, from described request, obtaining USER-AGENT information;
Portable terminal adaptation data library inquiry module (406), the portable terminal adaptation data storehouse of the server stores of other pages of the said WAP of providing of mobile terminal features information inquiry system that are used for putting down in writing according to USER-AGENT information;
Code identification module (407), the coded system that is used for being supported with the said portable terminal of portable terminal adaptation data storehouse record is as the coded system that identifies.
10. device according to claim 8 is characterized in that, also comprises:
Queued session information storage module (408) is used for the coded system that is identified is saved in the queued session information of portable terminal;
Queued session information reading module (409) when being used for webpage that the server of other pages of the said WAP of providing of mobile terminal accessing system provides, calls the coded system of preserving in the described request session information as the coded system that is identified.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008102259602A CN101389089B (en) | 2008-11-07 | 2008-11-07 | Mobile terminal adaptation processing method and apparatus based on WAP system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008102259602A CN101389089B (en) | 2008-11-07 | 2008-11-07 | Mobile terminal adaptation processing method and apparatus based on WAP system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101389089A CN101389089A (en) | 2009-03-18 |
CN101389089B true CN101389089B (en) | 2012-05-02 |
Family
ID=40478205
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008102259602A Expired - Fee Related CN101389089B (en) | 2008-11-07 | 2008-11-07 | Mobile terminal adaptation processing method and apparatus based on WAP system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101389089B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103458035A (en) * | 2013-09-05 | 2013-12-18 | 深圳市共进电子股份有限公司 | Client configuration interface implementation method based on WEB server |
CN106302237A (en) * | 2016-08-30 | 2017-01-04 | 成都科来软件有限公司 | A kind of method utilizing packet content identification mobile terminal |
CN113407367A (en) * | 2021-08-18 | 2021-09-17 | 万商云集(成都)科技股份有限公司 | Interface configuration method and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1568047A (en) * | 2003-07-10 | 2005-01-19 | 华为技术有限公司 | A method for implementing network side and terminal side service adaptation |
CN1878174A (en) * | 2006-01-26 | 2006-12-13 | 华为技术有限公司 | Method for displaying WAP browse content according to order information |
CN101026800A (en) * | 2007-03-13 | 2007-08-29 | 华为技术有限公司 | Data business content adapting method. system and portal system |
-
2008
- 2008-11-07 CN CN2008102259602A patent/CN101389089B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1568047A (en) * | 2003-07-10 | 2005-01-19 | 华为技术有限公司 | A method for implementing network side and terminal side service adaptation |
CN1878174A (en) * | 2006-01-26 | 2006-12-13 | 华为技术有限公司 | Method for displaying WAP browse content according to order information |
CN101026800A (en) * | 2007-03-13 | 2007-08-29 | 华为技术有限公司 | Data business content adapting method. system and portal system |
Also Published As
Publication number | Publication date |
---|---|
CN101389089A (en) | 2009-03-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8403222B2 (en) | Method of enabling the downloading of content | |
CN103067423B (en) | The method of browser kernel adaptation and browser | |
US7702317B2 (en) | System and method to query wireless network offerings | |
CN1867142B (en) | Method and system for mobile terminal device obtaining computer information | |
CN101150803B (en) | Method for micro-browser to process network data, micro-browser and its server | |
CN104281827B (en) | Identify the method and device of Quick Response Code | |
CN100594493C (en) | Method for delivering content to mobile devices | |
US8037084B2 (en) | Method and system for transcoding web pages by limiting selection through direction | |
CN1905701B (en) | Method and system for issuing network message to mobile terminal apparatus | |
EP2151981A1 (en) | Method, system and apparatus for implanting advertisement | |
FI103546B (en) | Data service in a mobile telephone network | |
US20130275496A1 (en) | Method, Apparatus And System For Rendering Web Page | |
CN101102313B (en) | Network download system and method with automatically replaced proxy server | |
JP2005346734A (en) | Method of providing content | |
CN103944944A (en) | Webpage link sharing method and system, and electronic device | |
CN101626395A (en) | Method and system for guiding mobile terminal to access world wide web by two-dimensional code | |
CN102202100A (en) | Method for processing network data by micro browser, micro browser and server thereof | |
US20110307776A1 (en) | Transcoding a web page | |
CN101854375A (en) | Redirecting method and device | |
CN101389089B (en) | Mobile terminal adaptation processing method and apparatus based on WAP system | |
CN107463536A (en) | A kind of method and system for realizing document in online preview server in Android device | |
KR101265164B1 (en) | System for providing shorten URL browsing with branding , method thereof, and web client thereof | |
WO2011116558A1 (en) | Method and terminal for processing short message | |
CN102447788A (en) | Method and device for reading multimedia message through mobile phone browser | |
CN102681996A (en) | Pre-reading 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 | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C56 | Change in the name or address of the patentee |
Owner name: YONYOU NETWORK TECHNOLOGY CO., LTD. Free format text: FORMER NAME: UFIDA SOFTWARE CO., LTD. |
|
CP01 | Change in the name or title of a patent holder |
Address after: 100094 Haidian District North Road, Beijing, No. 68 Patentee after: Yonyou Network Technology Co., Ltd. Address before: 100094 Haidian District North Road, Beijing, No. 68 Patentee before: UFIDA Software Co., Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20120502 Termination date: 20181107 |
|
CF01 | Termination of patent right due to non-payment of annual fee |