CN102843399A - Method for accessing webpage and server - Google Patents

Method for accessing webpage and server Download PDF

Info

Publication number
CN102843399A
CN102843399A CN2011101709806A CN201110170980A CN102843399A CN 102843399 A CN102843399 A CN 102843399A CN 2011101709806 A CN2011101709806 A CN 2011101709806A CN 201110170980 A CN201110170980 A CN 201110170980A CN 102843399 A CN102843399 A CN 102843399A
Authority
CN
China
Prior art keywords
address
terminal
webpage
web page
web
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.)
Granted
Application number
CN2011101709806A
Other languages
Chinese (zh)
Other versions
CN102843399B (en
Inventor
杨晴
李智
徐焕杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201110170980.6A priority Critical patent/CN102843399B/en
Publication of CN102843399A publication Critical patent/CN102843399A/en
Application granted granted Critical
Publication of CN102843399B publication Critical patent/CN102843399B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for accessing a webpage. The method comprises the following steps: whether a webpage address is suitable for achieving terminal access or not is determined based on the type of a terminal and the type of the webpage address when a user accesses the webpage through the terminal; and if so, the webpage corresponding to the webpage address is displayed to the user via the terminal, if not so, a preset mapping relational table is acquired to obtain a mapping address corresponding to the webpage address, and the webpage corresponding to the mapping address is displayed to the user by the terminal; and the data between the webpage corresponding to the webpage address and the webpage corresponding to the mapping address thereof is shared, however, the types of the webpage are different. With the adoption of the technical scheme disclosed by the invention, the success rate in access can be improved.

Description

A kind of method of accessed web page and a kind of server
Technical field
The present invention relates to Internet technology, particularly a kind of method of accessed web page and a kind of server.
Background technology
Along with developing rapidly of Internet technology, people strengthen with the desire of obtaining information through mobile terminal accessing the Internets such as mobile phones greatly, and mobile Internet is quietly changing people's online custom.
Product on traditional the Internet all is that the form with the Web webpage provides; These webpages are to be personal computer (PC specially; Personal Computer) etc. non-moving Terminal Design adopts the HTML (HTML, Hyper Text Markup Language) to write; And use CSS (CSS, Cascading Style Sheet) and script (JavaScript) etc. that gorgeous special efficacy is provided.Than non-moving terminal, portable terminal has that screen is little, disposal ability is poor, and restriction such as the network bandwidth is little; Therefore the Web webpage can not well show on portable terminal, for this reason, develop a kind of WML (WML in the prior art again; Wireless Markup Language); Be used to write the webpage that portable terminal can show, i.e. WAP (Wap, Wireless Application Protoco1) webpage.
At present, increasing internet product provides Web webpage and two kinds of forms of Wap webpage simultaneously, and the data between the two are shared, and just type of webpage is different.
But, in practical application, also can have certain problem; Such as: the user has sent out a microblogging on PC, wherein shared a web page address, i.e. URL (URL; Uniform Resource Locator) address, the type of this web page address is the Web address, so; When this web page address of other user capture,, can not have problems if conduct interviews through PC; But,, therefore will cause the visit failure because mobile phone is only supported the Wap webpage usually if conduct interviews through mobile phone; Otherwise, if, also can there be the problem of visit failure through Wap address of pc access in the user.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of method of accessed web page, can improve Access Success Rate.
Another object of the present invention is to provide a kind of server, can improve Access Success Rate.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of method of accessed web page comprises:
A, as user during through terminal access one web page address, according to the type at said terminal and the type of said web page address, confirm whether said web page address is fit to said terminal access;
If; Then that said web page address is corresponding webpage is shown to the user through said terminal, otherwise, through inquiring about the mapping relations table that is provided with in advance; Obtain the corresponding mapping address of said web page address, and the webpage that said mapping address is corresponding is shown to the user through said terminal; Data between the webpage of said web page address and its mapping address correspondence are shared, but type of webpage is different.
A kind of server comprises:
First processing unit is used to preserve the mapping relations table that is provided with in advance;
Second processing unit is used for according to the type at said terminal and the type of said web page address, confirming whether said web page address is fit to said terminal access as user during through terminal access one web page address; If; Then that said web page address is corresponding webpage is shown to the user through said terminal, otherwise, through inquiring about said mapping relations table; Obtain the corresponding mapping address of said web page address, and the webpage that said mapping address is corresponding is shown to the user through said terminal; Data between the webpage of said web page address and its mapping address correspondence are shared, but type of webpage is different.
Thus it is clear that, adopt technical scheme of the present invention, the type of the type at the terminal that can use according to the user and the web page address that will visit; Find the webpage that is fit to terminal access, and show, thereby avoided occurring the situation that visit is failed; Improve Access Success Rate, also promoted user experience.
Description of drawings
Fig. 1 is the flow chart of the method embodiment of accessed web page of the present invention.
Fig. 2 is the flow chart of the method preferred embodiment of accessed web page of the present invention.
Fig. 3 is the composition structural representation of server implementation example of the present invention.
Embodiment
To the problem that exists in the prior art, the method for the accessed web page among the present invention after a kind of improvement of proposition can be avoided occurring visiting the situation of failure, thereby improved Access Success Rate.
Fig. 1 is the flow chart of the method embodiment of accessed web page of the present invention.As shown in Figure 1, may further comprise the steps:
Step 11: as user during,, confirm whether this web page address is fit to terminal access according to the type at terminal and the type of this web page address through terminal access one web page address, if then execution in step 12, otherwise, execution in step 13.
The type at terminal can comprise: portable terminal and non-moving terminal; The type of web page address can comprise: Web address and Wap address.
If the terminal is PC, the web page address that visit is the Web address, and this web page address then is fit to terminal access so, if the web page address of visit is the Wap address, this web page address then is not suitable for terminal access so.
Otherwise if the terminal is a mobile phone, the web page address that visit is the Wap address, and this web page address then is fit to terminal access so, if the web page address of visit is the Web address, this web page address then is not suitable for terminal access so.
Step 12: the webpage that this web page address is corresponding is shown to the user through the terminal, process ends.
Step 13: through the mapping relations table that inquiry is provided with in advance, obtain the corresponding mapping address of this web page address, and the webpage that this mapping address is corresponding is shown to the user through the terminal, process ends; Data between the webpage of said web page address and its mapping address correspondence are shared, but type of webpage is different.
Above-mentioned type of webpage can comprise: Web webpage and Wap webpage.
The prerequisite that scheme according to the invention realizes is to each web page contents, has two kinds of forms of Web webpage and Wap webpage respectively, and the corresponding relation between two addresses is preserved in every kind of corresponding address of form in the mapping relations table.
Said mapping relations table can dynamically update, as adds new corresponding relation etc.
Through preferred embodiment, scheme according to the invention is further specified below.
Fig. 2 is the flow chart of the method preferred embodiment of accessed web page of the present invention.Suppose that the portable terminal in this preferred embodiment is a mobile phone, non-moving terminal is PC, and is as shown in Figure 2, may further comprise the steps:
Step 21: as user during through terminal access one web page address, the type of confirming the terminal is mobile phone or PC, if mobile phone, then execution in step 22, if PC, then execution in step 25.
Step 22: the type of confirming this web page address still is the Wap address for the Web address, if the Wap address, then execution in step 23, if the Web address, then execution in step 24.
Step 23: the webpage that this Wap address is corresponding is shown to the user through the terminal, process ends.
Step 24: through the mapping relations table that inquiry is provided with in advance, obtain corresponding Wap address, this Web address, and the webpage that the Wap address that obtains is corresponding is shown to the user through the terminal, process ends.
Step 25: the type of confirming this web page address still is the Wap address for the Web address, if the Web address, then execution in step 26, if the Wap address, then execution in step 27.
Step 26: the webpage that this Web address is corresponding is shown to the user through the terminal, process ends.
Step 27: through the mapping relations table that inquiry is provided with in advance, obtain corresponding Web address, this Wap address, and the webpage that the Web address that obtains is corresponding is shown to the user through the terminal, process ends.
Based on above-mentioned introduction, Fig. 3 is the composition structural representation of server implementation example of the present invention.As shown in Figure 3, comprising:
First processing unit 31 is used to preserve the mapping relations table that is provided with in advance;
Second processing unit 32 is used for according to the type at terminal and the type of this web page address, confirming whether this web page address is fit to terminal access as user during through terminal access one web page address; If then that this web page address is corresponding webpage is shown to the user through the terminal, otherwise, through inquiring about said mapping relations table, obtain the corresponding mapping address of this web page address, and the webpage that this mapping address is corresponding is shown to the user through the terminal; Data between the webpage of said web page address and its mapping address correspondence are shared, but type of webpage is different.
The type at above-mentioned terminal can comprise: portable terminal and non-moving terminal, the type of web page address can comprise: Web address and Wap address, type of webpage can comprise: Web webpage and Wap webpage.
Wherein, can specifically comprise in second processing unit 32:
First handles subelement 321; Be used for as user during through terminal access one web page address; The type of confirming the terminal is that portable terminal still is non-moving terminal, if portable terminal then notifies second to handle subelement 322 execution self function; Otherwise, notify the 3rd to handle subelement 323 execution self function;
Second handles subelement 322, is used for confirming that the type of this web page address still is the Wap address for the Web address, if the Wap address, then that this Wap address is corresponding webpage is shown to the user through the terminal; If the Web address then through the said mapping relations table of inquiry, obtains its corresponding Wap address, and the webpage that the Wap address that obtains is corresponding is shown to the user through the terminal;
The 3rd handles subelement 323, is used for confirming that the type of this web page address still is the Wap address for the Web address, if the Web address, then that this Web address is corresponding webpage is shown to the user through the terminal; If the Wap address then through the said mapping relations table of inquiry, obtains its corresponding Web address, and the webpage that the Web address that obtains is corresponding is shown to the user through the terminal.
In addition, first processing unit 31 is supported said mapping relations table is dynamically updated.
The concrete workflow of server implementation example shown in Figure 3 repeats no more please with reference to the respective description among the embodiment of method shown in Fig. 1 and 2 here.
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 made, is equal to replacement, improvement etc., all should be included within the scope that the present invention protects.

Claims (7)

1. the method for an accessed web page is characterized in that, comprising:
A, as user during through terminal access one web page address, according to the type at said terminal and the type of said web page address, confirm whether said web page address is fit to said terminal access;
If; Then that said web page address is corresponding webpage is shown to the user through said terminal, otherwise, through inquiring about the mapping relations table that is provided with in advance; Obtain the corresponding mapping address of said web page address, and the webpage that said mapping address is corresponding is shown to the user through said terminal; Data between the webpage of said web page address and its mapping address correspondence are shared, but type of webpage is different.
2. method according to claim 1 is characterized in that, the type at said terminal comprises: portable terminal and non-moving terminal, and the type of said web page address comprises: Web address and Wap address, said type of webpage comprises: Web webpage and Wap webpage;
Said steps A comprises:
A1, as user during through terminal access one web page address, the type of confirming said terminal is that portable terminal still is non-moving terminal, if portable terminal, execution in step A2 then, otherwise, execution in step A3;
A2, confirm that the type of said web page address still is the Wap address for the Web address, if the Wap address, then that said Wap address is corresponding webpage is shown to the user through said terminal; If the Web address then through the said mapping relations table of inquiry, obtains its corresponding Wap address, and the webpage that the Wap address that obtains is corresponding is shown to the user through said terminal;
A3, confirm that the type of said web page address still is the Wap address for the Web address, if the Web address, then that said Web address is corresponding webpage is shown to the user through said terminal; If the Wap address then through the said mapping relations table of inquiry, obtains its corresponding Web address, and the webpage that the Web address that obtains is corresponding is shown to the user through said terminal.
3. method according to claim 1 is characterized in that, supports said mapping relations table is dynamically updated.
4. according to claim 1,2 or 3 described methods, it is characterized in that said portable terminal is a mobile phone, said non-moving terminal is a personal computer PC.
5. a server is characterized in that, comprising:
First processing unit is used to preserve the mapping relations table that is provided with in advance;
Second processing unit is used for according to the type at said terminal and the type of said web page address, confirming whether said web page address is fit to said terminal access as user during through terminal access one web page address; If; Then that said web page address is corresponding webpage is shown to the user through said terminal, otherwise, through inquiring about said mapping relations table; Obtain the corresponding mapping address of said web page address, and the webpage that said mapping address is corresponding is shown to the user through said terminal; Data between the webpage of said web page address and its mapping address correspondence are shared, but type of webpage is different.
6. server according to claim 5 is characterized in that, the type at said terminal comprises: portable terminal and non-moving terminal, and the type of said web page address comprises: Web address and Wap address, said type of webpage comprises: Web webpage and Wap webpage;
Said second processing unit comprises:
First handles subelement, is used for as user during through terminal access one web page address, and the type of confirming said terminal is that portable terminal still is non-moving terminal; If portable terminal; Then notify second to handle subelement execution self function, otherwise, notify the 3rd to handle subelement execution self function;
Said second handles subelement, is used for confirming that the type of said web page address still is the Wap address for the Web address, if the Wap address, then that said Wap address is corresponding webpage is shown to the user through said terminal; If the Web address then through the said mapping relations table of inquiry, obtains its corresponding Wap address, and the webpage that the Wap address that obtains is corresponding is shown to the user through said terminal;
The said the 3rd handles subelement, is used for confirming that the type of said web page address still is the Wap address for the Web address, if the Web address, then that said Web address is corresponding webpage is shown to the user through said terminal; If the Wap address then through the said mapping relations table of inquiry, obtains its corresponding Web address, and the webpage that the Web address that obtains is corresponding is shown to the user through said terminal.
7. according to claim 5 or 6 described servers, it is characterized in that the said first processing unit support dynamically updates said mapping relations table.
CN201110170980.6A 2011-06-23 2011-06-23 A kind of method and a kind of server for accessing webpage Active CN102843399B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110170980.6A CN102843399B (en) 2011-06-23 2011-06-23 A kind of method and a kind of server for accessing webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110170980.6A CN102843399B (en) 2011-06-23 2011-06-23 A kind of method and a kind of server for accessing webpage

Publications (2)

Publication Number Publication Date
CN102843399A true CN102843399A (en) 2012-12-26
CN102843399B CN102843399B (en) 2017-10-03

Family

ID=47370458

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110170980.6A Active CN102843399B (en) 2011-06-23 2011-06-23 A kind of method and a kind of server for accessing webpage

Country Status (1)

Country Link
CN (1) CN102843399B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104376009A (en) * 2013-08-14 2015-02-25 腾讯科技(深圳)有限公司 Microblog page enriching method, system and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020001295A1 (en) * 2000-06-26 2002-01-03 Woo-Kyeong Park System and method for providing wireless application protocol service through internet
CN101178717A (en) * 2007-12-05 2008-05-14 优视动景(北京)技术服务有限公司 Method for adaptation processing web page and web page adaptation device
CN101198116A (en) * 2006-12-06 2008-06-11 中国电信股份有限公司 Method, terminal and system for addressing and accessing WAP web page by virtual web site
CN101355565A (en) * 2008-09-12 2009-01-28 腾讯科技(深圳)有限公司 Method and server for providing page service for various browsers
CN101465866A (en) * 2007-12-20 2009-06-24 上海盛娱网络科技有限公司 Method for accessing WAP network based on Web terminal and transition module
CN102025779A (en) * 2010-12-02 2011-04-20 百度在线网络技术(北京)有限公司 Method and equipment for establishing WAP (Wireless Application Protocol) site

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020001295A1 (en) * 2000-06-26 2002-01-03 Woo-Kyeong Park System and method for providing wireless application protocol service through internet
CN101198116A (en) * 2006-12-06 2008-06-11 中国电信股份有限公司 Method, terminal and system for addressing and accessing WAP web page by virtual web site
CN101178717A (en) * 2007-12-05 2008-05-14 优视动景(北京)技术服务有限公司 Method for adaptation processing web page and web page adaptation device
CN101465866A (en) * 2007-12-20 2009-06-24 上海盛娱网络科技有限公司 Method for accessing WAP network based on Web terminal and transition module
CN101355565A (en) * 2008-09-12 2009-01-28 腾讯科技(深圳)有限公司 Method and server for providing page service for various browsers
CN102025779A (en) * 2010-12-02 2011-04-20 百度在线网络技术(北京)有限公司 Method and equipment for establishing WAP (Wireless Application Protocol) site

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104376009A (en) * 2013-08-14 2015-02-25 腾讯科技(深圳)有限公司 Microblog page enriching method, system and device
US10367774B2 (en) 2013-08-14 2019-07-30 Tencent Technology (Shenzhen) Company Limited Methods, systems, and devices for enriching microblog page
CN104376009B (en) * 2013-08-14 2019-11-05 腾讯科技(深圳)有限公司 The abundantization mthods, systems and devices of microblog page

Also Published As

Publication number Publication date
CN102843399B (en) 2017-10-03

Similar Documents

Publication Publication Date Title
US8589484B2 (en) Method for optimizing a web content proxy server and devices thereof
CN101446983B (en) Method, system and equipment for realizing web page acquisition by mobile terminal
CN103383687B (en) A kind of page processing method and device
CN102985921B (en) There is the client terminal device high speed caching electronic document resources of e-sourcing data base
CA2839006C (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
CN104572843B (en) The loading method and device of a kind of page
EP3485400A1 (en) Methods and systems for server-side rendering of native content for presentation
CN103428243A (en) Implementation method, device and system for static storage of dynamic webpage
CN102185923A (en) Webpage browsing method for mobile communication equipment terminal
CN102654885A (en) Mobile terminal webpage adaptation system and method
CN106776761A (en) A kind of mobile browser renders the method and device of webpage
CN102917074A (en) Server-side browser realization method and server
CN100579122C (en) Method for realizing browse service COOKIE of wireless application protocol gateway
CN104541262A (en) System and method for transparent in-network adaptation of rich internet applications
CN105589956A (en) User portraying method and device
US20130227004A1 (en) Methods for optimizing a web content proxy server and devices thereof
CN101799821A (en) Method and system for realizing webpage application by widget
CN105868234A (en) Update method and device of caching data
US20140006918A1 (en) Method and system for web page rearrangement
CN105279156B (en) Network information communication means and network information browsing apparatus
EP2787454A1 (en) Methods for optimizing a web content proxy server and devices thereof
CN102681996B (en) Pre-head method and device
CN104615597A (en) Method, device and system for clearing cache file in browser
CN102843399A (en) Method for accessing webpage and server
CN103001924A (en) Method, network server and system for accessing pages

Legal Events

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