CN101854375A - Redirecting method and device - Google Patents

Redirecting method and device Download PDF

Info

Publication number
CN101854375A
CN101854375A CN200910133412A CN200910133412A CN101854375A CN 101854375 A CN101854375 A CN 101854375A CN 200910133412 A CN200910133412 A CN 200910133412A CN 200910133412 A CN200910133412 A CN 200910133412A CN 101854375 A CN101854375 A CN 101854375A
Authority
CN
China
Prior art keywords
redirect
link
response page
response
page
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
Application number
CN200910133412A
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Huawei Software Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN200910133412A priority Critical patent/CN101854375A/en
Publication of CN101854375A publication Critical patent/CN101854375A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the invention relates to a redirecting method and a redirecting device. The redirecting method comprises the following steps of: acquiring a response page which is returned to a mobile terminal from a service provider server, wherein the response page comprises a redirecting link pointing at a redirecting response; acquiring a link of a final response page corresponding to the redirecting link; and substituting the link of the final response page for the redirecting link in the response page, and returning a response page which comprises the link of the final response page to the mobile terminal. When the response page comprises the redirecting link, the redirecting link in the response page is replaced by the link of the final response page; while when the service response returned by the server is the redirecting response, a redirecting response which is redirected to the final response page is returned to the mobile terminal. Therefore, the interaction between the mobile terminal and the SP server is reduced, and the efficiency for the mobile terminal to access the SP server is improved.

Description

Reorientation method and device
Technical field
The present invention relates to the communications field, particularly reorientation method and device.
Background technology
WAP (wireless application protocol) (Wireless Application Protocol, hereinafter to be referred as WAP) gateway has protocol conversion and codec functions, realized being connected of mobile communications network and the Internet (Internet), portable terminal can have access to service provider (Service Provider on the Internet by WAP gateway, hereinafter to be referred as: SP) server, thus obtain the abundant information service that the SP server provides.In the process of mobile terminal accessing SP server, there is situation about being redirected usually, such as, the page location of visiting when mobile terminal request changes, and at this moment, portable terminal need carry out page reorientation, to get access to the page of expectation.And because the transmission rate of portable terminal and WAP gateway is low, when between user terminal and SP, needing to take place repeatedly to be redirected interactive operation, it is longer to cause the user to obtain the time delay of the final page, and these redirection process all are that useless process (only is the redirect that realizes page jump or SP for final browsing, as realize the redirect of portal) to SP, but but prolonged user's the page wait time greatly, influenced the transmission rate of whole system.
Summary of the invention
The embodiment of the invention provides a kind of reorientation method and device, to reduce the mutual of portable terminal and SP server, improves the efficient of mobile terminal accessing SP server.
The embodiment of the invention provides a kind of reorientation method, comprising:
Obtain the response page that service provider server returns to portable terminal, described response page comprises the redirect link of pointing to redirect response;
Obtain the link of the final response page of described redirect link correspondence;
Redirect link in the described response page is replaced to the link of described final response page, and return the response page of the link that includes final response page to described portable terminal.
The embodiment of the invention provides a kind of reorientation method, comprising:
The service request that transmitting mobile terminal sends to service provider server;
Receive described service provider server and respond the service response that described service request is returned;
When described service response is redirect response, be redirected according to described redirect response, the service response of returning until described service provider server is final response page;
Generation is redirected to the redirect response of described final response page, and returns the described redirect response that is redirected to described final response page to described portable terminal.
The embodiment of the invention provides a kind of redirection device, comprising:
First acquisition module is used to obtain the response page that service provider server returns to portable terminal, and described response page comprises the redirect link of pointing to redirect response;
Second acquisition module is used to obtain the link of the final response page of described redirect link correspondence;
The replacement module is used for the redirect link of described response page is replaced to the link of described final response page;
First sending module is used for returning to described portable terminal the response page of the link that includes final response page.
The embodiment of the invention provides a kind of redirection device, comprising:
Forwarding module is used for the service request that transmitting mobile terminal sends to service provider server;
Receiver module is used to receive described service provider server and responds the service response that described service request is returned;
Redirection module is used for being redirected according to described redirect response when described service response is redirect response, and the service response of returning until described service provider server is final response page;
Generation module is used to generate the redirect response that is redirected to described final response page;
Second sending module is used for returning to described portable terminal the redirect response of the address that includes final response page.
As shown from the above technical solution, the embodiment of the invention replaces with the redirect link in the response page link of final response page when containing redirect link in response page; And the service response of returning when service provider server is when being redirect response, return the redirect response that is redirected to final response page to portable terminal, make link that portable terminal can be by final response page or the redirect response that is redirected to final response page directly get access to final response page, reduce the mutual of portable terminal and SP server, improved the efficient of mobile terminal accessing SP server.
Description of drawings
The schematic flow sheet of the reorientation method that Fig. 1 provides for the embodiment of the invention;
The signaling diagram of the reorientation method that Fig. 2 provides for the embodiment of the invention;
The signaling diagram of the reorientation method that Fig. 3 provides for the embodiment of the invention;
The signaling diagram of the reorientation method that Fig. 4 provides for the embodiment of the invention;
The schematic flow sheet of the reorientation method that Fig. 5 provides for the embodiment of the invention;
The signaling diagram of the reorientation method that Fig. 6 provides for the embodiment of the invention;
The structural representation of the redirection device that Fig. 7 provides for the embodiment of the invention;
The structural representation of the redirection device that Fig. 8 provides for the embodiment of the invention;
The structural representation of the redirection device that Fig. 9 provides for the embodiment of the invention;
The structural representation of the redirection device that Figure 10 provides for the embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing specific embodiments of the invention are described in further detail.
The schematic flow sheet of the reorientation method that Fig. 1 provides for the embodiment of the invention.As shown in Figure 1, present embodiment can may further comprise the steps:
Step 101, obtain the response page that service provider server returns to portable terminal, described response page comprises the redirect link of pointing to redirect response;
Step 102, the link of obtaining the final response page of described redirect link correspondence;
Step 103, the redirect link in the described response page is replaced to the link of described final response page, and return the response page of the link that includes final response page to described portable terminal.
In the embodiments of the invention, the page that response page returns for the page request that SP server response portable terminal sends, this response page can comprise: header and main body (body), this header can return portable terminal separately in response.
In specific embodiment of the present invention, after redirection device receives this response page, can determine whether comprise the redirect link of pointing to redirect response in this response page according to the information that comprises in the header of this response page or the main body.In this header, comprise the conditional code of representing redirect operation, for example: at HTML (Hypertext Markup Language) (Hyper Text Transfer Protocol, hereinafter to be referred as HTTP) " Location " field of occurring of title (header) part, then this header can be described as redirect response.Comprise the command word of representing redirect operation in this main body, for example: during fields such as " onenterforward " that main part occurs, then this response page is called the redirect response page.When the header of this response page does not comprise the conditional code of representing redirect operation, simultaneously, main body does not comprise the command word of representing redirect operation, claims that then this response page is final response page.Wherein, can comprise link in the response page: for example: the network address of webpage, the Internet protocol of website (Internet Protocol, hereinafter to be referred as IP) address etc., can log-on webpage or website by clickthrough, when the response webpage that returns when this webpage or website is final response page, then claim this to be linked as the link of final response page; When the response page that returns when this page or website is the redirect response page, then claim this to be linked as redirect link, this redirect link is pointed to redirect response.Each redirect link is to there being the link of a final response page, both mapping relations are stored in the memory cell of redirection device, these mapping relations comprise indirect mapping relations and direct mapping relations, wherein, mapping relations are that redirect link need just can obtain final response page after repeatedly being redirected indirectly, can there be a plurality of indirect mapping relations between the linking of redirect link and final response page, for example: redirect link B need be through being redirected C, D just can obtain final response page D, and then redirect link B with the indirect mapping relations that link D of final response page is: B → C; C → D.Directly mapping relations are just to obtain final response page after redirect link once is redirected, and for example: also can there be direct mapping relations: a B → D in redirect link B with final linking of response page between the D.
In the present embodiment, the SP server returns response page by redirection device to portable terminal after receiving the page request of portable terminal transmission, carries redirect link in this response page.After redirection device receives this response page, from the mapping relations of storage in advance, match linking of the final response page corresponding with redirect link, then the redirect link in the response page is replaced to the link of final response page, and return the response page of the link that includes final response page to portable terminal.Make portable terminal directly get access to final response page, reduced the mutual of portable terminal and SP server by the link of clicking the final response page in the response page.
When not having Storage Mapping to concern in the redirection device, after redirection device receives this response page, the link that the mode that employing is read is in advance obtained final response page, redirect link in the response page is replaced to the link of final response page, and return the response page of the link that includes final response page to portable terminal.Particularly, the mode that reads in advance is that redirection device replaces portable terminal to send the page request that carries redirect link to the SP server, returns final response page up to the SP server.
In the present embodiment when in response page, containing redirect link, redirect link in the response page is replaced with the link of final response page, make portable terminal directly to get access to final response page by the link of final response page, reduce the mutual of portable terminal and SP server, improved the efficient of mobile terminal accessing SP server.
The signaling diagram of the reorientation method that Fig. 2 provides for the embodiment of the invention, the reorientation method that present embodiment provides based on above-mentioned Fig. 1, the method that employing is mated from the mapping relations that redirection device is stored is in advance obtained linking of the final response page corresponding with redirect link, need to prove, redirection device in the present embodiment is a WAP gateway, and the mapping relations in the present embodiment are direct mapping relations.As shown in Figure 2, present embodiment can may further comprise the steps:
Step 201, portable terminal send page request to WAP gateway.
During the mobile terminal accessing the Internet, at first send page request to WAP gateway, include the address of SP server in this page request by mobile communications network.
Wherein, the address of present embodiment can be various ways such as IP address, URL(uniform resource locator) (UniformResource Location is hereinafter to be referred as url) address, domain name.The mobile communications network of supporting portable terminal to be connected with WAP gateway can comprise: global system for mobile communications (Global Systemfor Mobile Communications, hereinafter to be referred as GSM), code division multiple access (Code Division MultipleAddress, hereinafter to be referred as CDMA), GPRS (General Packet Radio Service, hereinafter to be referred as: GPRS), the third generation (Third Generation, hereinafter to be referred as: 3G), Personal Digital Cellular's mobile communications networks such as (Personal Digital Cellular are hereinafter to be referred as PDC).Portable terminal can be for communicating by above-mentioned mobile communications network and WAP gateway: mobile phone, personal digital assistant (Personal Digital Assistant, hereinafter to be referred as: PDA), terminal equipment such as notebook computer;
Step 202, page request is forwarded to the SP server.
The mode that WAP gateway adopts protocol conversion and encoding and decoding is forwarded to SP server in the Internet with the request of mobile communications network;
Step 203, obtain the response page that the SP server returns to portable terminal.
When portable terminal returned response page, WAP gateway obtained this response page at the SP server.
Wherein, comprised a plurality of links in the response page, in these a plurality of links, part is the link of final response page, and promptly portable terminal can directly obtain final response page by this link; Part is for pointing to the link of redirect response, and promptly portable terminal also needs at least once to be redirected just to obtain final response page by this link;
Step 204, scanning response page obtain redirect link.
WAP gateway obtains the redirect link of pointing to redirect response in the response page according to the condition of being redirected scanning response page.
Wherein, redirected condition is to comprise the conditional code of representing redirect operation in the header of response page, for example: " Location " field that the title division of HTTP occurs, perhaps comprise the command word of representing redirect operation, for example: " onenterforward " field that the main part of the page occurs etc. in the response page;
Step 205, from advance the storage direct mapping relations match linking of the final response page corresponding with redirect link.
Wherein, WAP gateway adopts buffer memory in advance or import the mode of data from other memory device, store a plurality of mapping relations in advance, mapping relations comprise: mapping relations or directly mapping relations indirectly are described at the situation of storing direct mapping relations in advance in the present embodiment.
WAP gateway matches linking of the final response page corresponding with redirect link according to redirect link from the direct mapping relations of self storing;
Step 206, the redirect link in the response page replaced to the link of final response page.
The mode that redirect link in the response page is replaced to the link of final response page mainly contains two kinds:
First kind of mode is: " Location " field in the header part of HTTP is directly revised.For example:
HTTP/1.1302?Found
Date:Thu,31Aug?2006?04:43:18GMT
Server:Apache/2.2.3(Win32)
ETag:″9600-6e-1a059358″
Accept-Ranges:bytes
Location:http://192.168.0.1/
If the header of above-mentioned HTTP part " Location:http: // 192.168.0.1/" in the linking of redirect link and final response page " Http: // 192.168.10.10/" have direct mapping relations, redirect link is replaced to the link of final response page, the header of the HTTP of the response page after then replacing partly is:
HTTP/1.1302Found
Date:Thu,31Aug?2006?04:43:18GMT
Server:Apache/2.2.3(Win32)
ETag:″9600-6e-1a059358″
Accept-Ranges:bytes
Location:http://192.168.10.10/
The second way is: realize that by the redirect grammer redirect link replaces to the link of final response page, for example:
HTTP/1.1200OK
Date:Thu,31Aug?2006?04:43:18GMT
Server:Apache/2.2.3(Win32)
Last-Modified:Wed,26Apr?2006?03:31:05GMT
ETag:″9600-6e-1a059358″
Accept-Ranges:bytes
Content-Type:text/vnd.wap.wml;encoding=GB2312
<?xml?version=″1.0″encoding=″GB2312″?>
<!DOCTYPE?wml?PUBLIC″-//WAPFORUM//DTD?WML?1.3//EN″
http://www.wapforum.org/DTD/wml13.dtd″>
<wml>
<card?id=″card2″newcontext=″false″
onenterforward=″ http://10.164.74.220:8585/wfiun/wae/redir?wml/redir4.
wml″title=″category″>
</card>
</wml>
The body appearance of the response page after the above-mentioned replacement " Http:// www.wapforum.org/DTD/wml13.dtd" be redirect link, and after " onenterforward " field " Http: // 10.164.74.220:8585/wfjun/wae/redir wml/redir4.wml" be the link of final response page, redirect grammer " onenterforward " field replaces to redirect link the link of final response page.
Need to prove that the mode that in the present embodiment redirect link in the response page is replaced to the link of final response page is not limited in above-mentioned two kinds, all can use the link that realizes redirect link is replaced to final response page in the present embodiment as long as can realize page reorientation method;
Step 207, return the response page of the link of the address correspondence that comprises final response page to portable terminal;
Step 208, WAP gateway transparent transmission portable terminal carry " cookie " information of portable terminal to the final response page request that the SP server sends in this final response page request.
Wherein, " cookie " information is used for making the SP server can distinguish the data of mobile phone users identity when the SP server sends request for being stored in the portable terminal.
After portable terminal receives the response page of link of the address correspondence that comprises final response page, click comprises the link of the final response page in the response page of link of address correspondence of final response page, final response page request to the transmission of SP server, carry " cookie " information of portable terminal in this final response page request, after WAP gateway receives this final response page request, to the SP server forwards;
Step 209, SP server return final response page to portable terminal.
After the SP server receives this final response page request, according to " cookie " information of carrying in this final response page request portable terminal is discerned, and returned the final response page that carries " cookie " information to portable terminal.
By after the redirect link in the response page is replaced to linking of the final response page corresponding with it, and return the response page of the link of the address correspondence that comprises final response page to portable terminal in the present embodiment.When portable terminal when the SP server sends request with respect to the link of final response page, portable terminal is carried at " cookie " information and sends to the SP server in the request together, thereby strengthened the recognition capability of SP server, improved user experience portable terminal.
Further, present embodiment has adopted and matched linking of the final response page corresponding with redirect link from is stored in the mapping relations the WAP gateway in advance, realized redirect link is replaced to the link of final response page in WAP gateway inside, reduced the mutual of WAP gateway and SP server, shortened the access time of portable terminal, satisfied user's request the Internet.
The signaling diagram of the reorientation method that Fig. 3 provides for the embodiment of the invention, the reorientation method that present embodiment provides based on above-mentioned Fig. 1, present embodiment are compared difference and be with the reorientation method that above-mentioned Fig. 2 provides: present embodiment is described at the situation of storing indirect mapping relations in the WAP gateway in advance.As shown in Figure 3, present embodiment is further comprising the steps of:
The step 201-step 204 of the reorientation method that step 301-step 304 and above-mentioned Fig. 2 provide in the present embodiment is identical, is not giving unnecessary details herein.
Step 305, from advance the storage indirect mapping relations match linking of the final response page corresponding with redirect link.
Wherein, WAP gateway adopts buffer memory in advance or import the mode of data from other memory device, store a plurality of mapping relations in advance, mapping relations comprise indirect mapping relations or direct mapping relations, and present embodiment is described at the situation of storing indirect mapping relations in the WAP gateway in advance.
When redirect link need be through just can obtain final response page after repeatedly being redirected the time, can there be a plurality of indirect mapping relations between the linking of redirect link and final response page, for example: redirect link B need just can obtain final response page D through being redirected C, D, and then redirect link B with the indirect mapping relations that link D of final response page is: B → C; C → D; Also can there be direct mapping relations: a B → D in redirect link B with final linking of response page between the D;
Step 306, a plurality of indirect mapping relations are shone upon conversion, generate the redirect link and the final direct mapping relations that link of response page.
WAP gateway is converted to direct mapping relations by the mapping conversion with a plurality of indirect mapping relations by the contact between the mapping relations.For example: redirect link B with the indirect mapping relations that link D of final response page is: B → C; C → D; WAP gateway links together two indirect mapping relations by C: B → C → D; After saving intermediate steps, generate redirect link B and the final direct mapping relations that link D of response page: B → D.
The step 206-step 209 of the reorientation method that step 307-step 310 and above-mentioned Fig. 2 provide in the present embodiment is identical, is not giving unnecessary details herein.
In the present embodiment, by mapping conversion the redirect link and the final a plurality of indirect mapping relations that link of response page are converted to direct mapping relations, prevented to stride the problem that causes " cookie " information dropout in a plurality of redirection process of SP server, shortened the access time of portable terminal, improved the recognition capability of SP server portable terminal to the Internet.
The signaling diagram of the reorientation method that Fig. 4 provides for the embodiment of the invention, the reorientation method that present embodiment provides based on above-mentioned Fig. 1, wherein, the link that WAP gateway adopts the mode that reads in advance to obtain final response page.As described in Figure 4, present embodiment is further comprising the steps of:
The step 201-step 204 of the reorientation method that step 401-step 404 and above-mentioned Fig. 2 provide in the present embodiment is identical, is not giving unnecessary details herein.
Step 405, send pre-read request to the SP server.
WAP gateway replaces portable terminal to send pre-read request to the SP server, carries redirect link in this pre-read request;
Step 406, receive that the SP server returns read feedback information in advance.
Wherein, read pre-read request that feedback information sends for SP server response redirection device in advance after, to the information that WAP gateway returns, this reads feedback information in advance can be final response page, also can be redirect link;
Whether feedback information is read in step 407, judgement in advance is redirect response, is then, returns step 405; Otherwise, the link of obtaining the final response page of redirect response correspondence.
WAP gateway adopts the scanning response page, obtain the method for redirect link, judge to read whether also to carry in the feedback information redirect link in advance, if, then return step 405, continue to send pre-read request and be redirected, carry the above-mentioned redirect link of reading in advance in the feedback information in this pre-read request to the SP server, the feedback information of reading in advance that returns until the SP server is final response page, the link of then obtaining this final response page; If not, then this to read feedback information in advance be final response page, the link of directly obtaining this final response page.
The step 206-step 209 of the reorientation method that step 408-step 411 and above-mentioned Fig. 2 provide in the present embodiment is identical, is not giving unnecessary details herein.
After obtaining the link of final response page by the method that reads final response page in advance in the present embodiment, and return the response page of the link of the address correspondence that comprises final response page to portable terminal.When portable terminal when the SP server sends request with respect to the link of final response page, portable terminal is carried at " cookie " information and sends to the SP server in the request together, thereby strengthened the recognition capability of SP server, improved user experience portable terminal.
The schematic flow sheet of the reorientation method that Fig. 5 provides for the embodiment of the invention, present embodiment is compared difference and is with the reorientation method that above-mentioned Fig. 1 provides: during the service response returned when the SP server in the present embodiment, WAP gateway generates the redirect response that is redirected to final response page, and the redirect response that generates is returned portable terminal.As shown in Figure 5, present embodiment can may further comprise the steps:
The service request that step 501, transmitting mobile terminal send to the SP server;
Step 502, the described SP server of reception respond the service response that described service request is returned;
Step 503, when described service response is redirect response, be redirected according to described redirect response, the service response of returning until described SP server is final response page;
Step 504, generation are redirected to the redirect response of described final response page, and return the described redirect response that is redirected to described final response page to described portable terminal.
The address of the redirect response in the present embodiment, final response page, final response page all has been described in detail in the embodiment of above-mentioned Fig. 1 to Fig. 4, is not giving unnecessary details herein.Different is, portable terminal related page request in the embodiment of service request that the SP server sends and above-mentioned Fig. 1 is defining identically in the present embodiment, only is the title difference.
The redirect response that is redirected to described final response page that redirection device generates in the embodiments of the invention specifically can be that address with final response page is carried at and generates redirect response in the header.
The mode that the service request that portable terminal sends to the SP server by redirection device, redirection device adopt protocol conversion and encoding and decoding is forwarded to SP server in the Internet with the service request of mobile communications network.After the SP server receives this service request,, return different service response to redirection device according to the service request that portable terminal sends.When carrying the redirect link of pointing to redirect response in the service request, then this service response is a redirect response; When carrying the address of final response page in the service request, then this service response is final response page.Redirection device judges whether this service response is redirect response, is then, is redirected according to redirect response after receiving the service response that the SP server returns, and provides until the SP service and returns final response page.Afterwards, redirection device obtains the address of this final response page, utilizes the address of this final response page to generate the redirect response that is redirected to final response page.Carry the address of final response page in the redirect response that redirection device generates.At last, redirection device returns the redirect response that generates to portable terminal.
When being redirect response by the service response of returning when the SP server in the present embodiment, return the redirect response that is redirected to final response page to portable terminal, make portable terminal directly to get access to final response page by the redirect response that is redirected to final response page, reduce the mutual of portable terminal and SP server, improved the efficient of mobile terminal accessing SP server.And the embodiment of the invention is by returning the redirect response that is redirected to final response page to portable terminal, oneself obtain final response page by portable terminal according to this redirect response, or the link that will ask final response page keeps to terminal and initiatively initiates, avoid the cookie information inconsistency, caused user profile to lose the problem of revealing with user profile.
The signaling diagram of the reorientation method that Fig. 6 provides for the embodiment of the invention, the reorientation method that present embodiment provides based on above-mentioned Fig. 5, the reorientation method that above-mentioned Fig. 5 is provided is elaborated.As shown in Figure 6, present embodiment can may further comprise the steps:
The page request that step 601, WAP gateway transparent transmission portable terminal send to the SP server.
During the mobile terminal accessing the Internet, at first send page request to the SP server, include the address of SP server in this page request by WAP gateway.The mode that this WAP gateway adopts protocol conversion and encoding and decoding forwards the request of mobile communications network in the Internet SP server thoroughly;
The response page that step 602, WAP gateway transparent transmission SP server return to portable terminal.
The SP server is made response to this page request after receiving the page request of portable terminal transmission, returns response page by WAP gateway to portable terminal, comprises the redirect link of pointing to redirect response in this response page.WAP gateway is transparent to portable terminal with this response page;
The service request that step 603, mobile terminal receive send.
After portable terminal receives response page,, send service request, carry redirect link in this service request to WAP gateway by clicking the redirect link in the response page;
Step 604, to SP server forwards service request.
After WAP gateway receives this service request, this service request directly is transparent to the SP server;
The service response that step 605, reception SP server return.
After the request of SP server response service, return service response to WAP gateway.
Wherein, among service response and the above-mentioned embodiment shown in Figure 4 to read the feedback information definition in advance identical, only be the title difference, above-mentioned Fig. 4 has been described in detail reading feedback information in advance, is not giving unnecessary details herein;
Step 606, judge whether service response is redirect response, is then, returns step 604; Otherwise, the address that obtains the final response page of redirect response correspondence.
WAP gateway adopts the scanning response page, obtain the method for redirect link, judge and whether also carry redirect link in the service response, if, then return step 604, continue to send service request and be redirected, carry the redirect link in the above-mentioned service response in this service request to the SP server, until this service response is final response page, the link of then obtaining this final response page; If not, then this service response is final response page, the address that directly obtains this final response page;
Step 607, return the redirect response that is redirected to final response page to portable terminal.
After WAP gateway obtains the address of final response page, the address of the final response page that obtains is carried in the header of response page, generates the redirect response that is redirected to final response page, and return this redirect response to portable terminal;
Step 608, WAP gateway transparent transmission portable terminal carry " cookie " information of portable terminal to the final response page request that the SP server sends in this final response page request.
Wherein, " cookie " information is used for making the SP server can distinguish the data of mobile phone users identity when the SP server sends request for being stored in the portable terminal.
After portable terminal receives the response page of the address that comprises final response page, click comprises the link of the final response page in the response page of address of final response page, final response page request to the transmission of SP server, carry " cookie " information of portable terminal in this final response page request, after WAP gateway receives this final response page request, to the SP server forwards;
Step 609, SP server return final response page to portable terminal.
After the SP server receives this final response page request, portable terminal is discerned, and the final response page that will carry " cookie " information returns to portable terminal according to " cookie " information of carrying in this final response page request.
Send service request by portable terminal in the present embodiment, avoided WAP gateway transparent transmission portable terminal the problem of information dropout in the process of SP server transmission information, to occur, and by return the redirect response that is redirected to final response page to portable terminal, make " cookie " information can be carried at portable terminal in the request that the SP server sends, " cookie " information that guaranteed is not lost, improved the recognition capability of SP server, strengthened user experience portable terminal.
The structural representation of the redirection device that Fig. 7 provides for the embodiment of the invention.The flow process of the reorientation method that the redirection device that present embodiment provides can be used for realizing that the embodiment of the invention shown in Figure 1 provides.As shown in Figure 7, the present embodiment redirection device comprises: first acquisition module 11, second acquisition module 12, replacement module 13 and first sending module 14.Wherein, first acquisition module 11 is used to obtain the response page that the SP server returns to portable terminal, and described response page comprises the redirect link of pointing to redirect response; Second acquisition module 12 is used to obtain the link of the final response page of described redirect link correspondence; Replacement module 13 is used for the redirect link of described response page is replaced to the link of described final response page; First sending module 14 is used for returning to described portable terminal the response page of the link that includes final response page.
Need to prove because device embodiment and method embodiment belong to same inventive concept, therefore a lot of identical or corresponding techniques features are arranged, identical or corresponding techniques feature for these only in brief, is not being given unnecessary details.
In the present embodiment, after the SP server received the page request that portable terminal sends, the redirection device by present embodiment returned response page to portable terminal, carries redirect link in this response page.The present embodiment redirection device receive this response page after, first acquisition module 11 obtains in this response page the redirect link of pointing to redirect response.Then, second acquisition module 12 link of obtaining the final response page of this redirect link correspondence.Replacement module 13 replaces to the redirect link in the response page link of final response page.At last, return the response page of the link that includes final response page to portable terminal by first sending module 14.
In the present embodiment when containing redirect link in the response page that returns at the SP server, replacement module 13 replaces with the redirect link in the response page link of final response page, make portable terminal directly to get access to final response page by the link of final response page, reduce the mutual of portable terminal and SP server, improved the efficient of mobile terminal accessing SP server.
The structural representation of the redirection device that Fig. 8 provides for the embodiment of the invention, the redirection device that present embodiment provides is based on the redirection device that above-mentioned Fig. 7 provides, the flow process of the reorientation method that can be used for realizing that the Fig. 2 and the embodiment of the invention shown in Figure 3 provide.As shown in Figure 8, first acquisition module 11 of present embodiment redirection device specifically is used for scanning described response page according to the condition of being redirected, and obtains the redirect link of pointing to redirect response in the described response page.
Further, second acquisition module 12 of present embodiment redirection device comprises: memory cell 121 and matching unit 122.Wherein, memory cell 121 is used to store linking of the final response page corresponding with described redirect link; Matching unit 122 is used for matching linking of the final response page corresponding with described redirect link from described memory cell 121.
In the present embodiment, after the SP server received the page request that portable terminal sends, the redirection device by present embodiment returned response page to portable terminal, carries redirect link in this response page.After the present embodiment redirection device received this response page, first acquisition module 11 obtained the redirect link of pointing to redirect response in this response page according to the response page that the condition scanning of being redirected receives.Because the memory cell 121 in second acquisition module 12 stores linking of the final response page corresponding with redirect link, therefore, the redirect link that matching unit 122 can obtain according to first acquisition module 11 matches linking of the final response page corresponding with this redirect link from memory cell 121.Afterwards, replace redirect link in the response page that module 13 receives the present embodiment redirection device and replace to the link of final response page, at last, return the response page of the link that includes final response page to portable terminal by first sending module 14.
Matching unit 122 matches linking of the final response page corresponding with redirect link in the present embodiment from memory cell 121, the redirect link in the response page is replaced with the link of final response page by replacement module 13, reduced the mutual of WAP gateway and SP server, shortened the access time of portable terminal, satisfied user's request the Internet.
The structural representation of the redirection device that Fig. 9 provides for the embodiment of the invention, the redirection device that present embodiment provides be based on the redirection device that above-mentioned Fig. 7 provides, the flow process of the reorientation method that can be used for realizing that the embodiment of the invention shown in Figure 4 provides.As shown in Figure 9, present embodiment is compared with the redirection device that above-mentioned Fig. 8 provides to distinguish and is: second acquisition module 12 of present embodiment redirection device comprises: pre-reading unit 123 and acquiring unit 124.Wherein, pre-reading unit 123 is used for according to described redirect link, reads the final response page of described redirect link correspondence in advance; Acquiring unit 124 is used to obtain the link of the final response page that described pre-reading unit 123 reads in advance.
In the present embodiment, the SP server returns response page by redirection device to portable terminal after receiving the page request of portable terminal transmission, carries redirect link in this response page.After the present embodiment redirection device received this response page, first acquisition module 11 obtained the redirect link of pointing to redirect response in this response page according to the response page that the condition scanning of being redirected receives.Next, the pre-reading unit 123 in second acquisition module 12 reads the final response page of this redirect link correspondence in advance according to the redirect link that first acquisition module 11 obtains.Then, acquiring unit 124 obtains the link of the final response page that pre-reading unit 123 reads in advance.Afterwards, replace redirect link in the response page that module 13 receives the present embodiment redirection device and replace to the link of final response page, at last, return the response page of the link that includes final response page to portable terminal by first sending module 14.
After reading the link of final response page in advance by pre-reading unit 123 in the present embodiment, the redirect link in the response page is replaced with the link of final response page by replacement module 13, reduced the mutual of WAP gateway and SP server, shortened the access time of portable terminal, satisfied user's request the Internet.
The flow process of the reorientation method that the structural representation of the redirection device that Figure 10 provides for the embodiment of the invention, the redirection device that present embodiment provides can be used for realizing that the Fig. 5 and the embodiment of the invention shown in Figure 6 provide.As shown in figure 10, the present embodiment redirection device can comprise: forwarding module 21, receiver module 22, redirection module 23, generation module 24 and second sending module 25.Wherein, forwarding module 21 is used for the service request that transmitting mobile terminal sends to the SP server; Receiver module 22 is used to receive described SP server and responds the service response that described service request is returned; Redirection module 23 is used for being redirected according to described redirect response when described service response is redirect response, and the service response of returning until described SP server is final response page; Generation module 24 is used to generate the redirect response that is redirected to described final response page; Second sending module 25 is used for returning to described portable terminal the redirect response of the address that includes final response page.
In the present embodiment, the redirection device of portable terminal by present embodiment is when the SP server sends service request, and the mode that the forwarding module 21 of redirection device adopts protocol conversions and encoding and decoding is forwarded to SP server in the Internet with the service request of mobile communications network.After the SP server receives this service request, this service request is responded, at this moment, the receiver module 22 of redirection device receives the SP server and responds the service response that this service request is returned.When this service response was redirect response, redirection module 23 was redirected according to redirect response, returns final response page until the SP server.Afterwards, generation module 24 utilizes the address of final response page to generate the redirect response that is redirected to final response page.At last, return the redirect response of the address that includes final response page to described portable terminal by second sending module 25.
When being redirect response by the service response of returning when the SP server in the present embodiment, generation module 24 utilizes the address of final response page to generate the redirect response that is redirected to final response page, and return the redirect response of the address that includes final response page to described portable terminal by second sending module 25, make portable terminal directly to get access to final response page by the redirect response that is redirected to final response page, reduce the mutual of portable terminal and SP server, improved the efficient of mobile terminal accessing SP server.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (13)

1. a reorientation method is characterized in that, comprising:
Obtain the response page that service provider server returns to portable terminal, described response page comprises the redirect link of pointing to redirect response;
Obtain the link of the final response page of described redirect link correspondence;
Redirect link in the described response page is replaced to the link of described final response page, and return the response page of the link that includes final response page to described portable terminal.
2. method according to claim 1 is characterized in that, described method also comprises:
Scan described response page according to redirected condition, obtain the redirect link in the described response page.
3. method according to claim 2 is characterized in that, described link of obtaining the final response page of described redirect link correspondence comprises:
According to described redirect link, from the mapping relations of storage in advance, match linking of the final response page corresponding with described redirect link.
4. method according to claim 2 is characterized in that, described link of obtaining the final response page of described redirect link correspondence comprises:
According to described redirect link, read the final response page of described redirect link correspondence in advance, the link of obtaining described final response page.
5. method according to claim 4 is characterized in that, and is described according to described redirect link, reads the final response page of described redirect link correspondence in advance, and the link of obtaining described final response page comprises:
Send the pre-read request that carries described redirect link to service provider server;
What receive that described service provider server returns reads feedback information in advance;
If the described feedback information of reading in advance is a redirect response, then be redirected according to described redirect response, the feedback information of reading in advance that returns until described service provider server is final response page, obtains the link of described final response page; If the described feedback information of reading in advance is final response page, then directly obtain the link of described final response page.
6. according to each described method of claim 2-5, it is characterized in that described redirected condition is: comprise in the header of described response page in the conditional code of representing redirect operation or the described response page and comprise the command word of representing redirect operation.
7. a reorientation method is characterized in that, comprising:
The service request that transmitting mobile terminal sends to service provider server;
Receive described service provider server and respond the service response that described service request is returned;
When described service response is redirect response, be redirected according to described redirect response, the service response of returning until described service provider server is final response page;
Generation is redirected to the redirect response of described final response page, and returns the described redirect response that is redirected to described final response page to described portable terminal.
8. method according to claim 7 is characterized in that, the redirect response that described generation is redirected to described final response page comprises:
Obtain the address of described final response page, utilize the address of described final response page to generate the redirect response that is redirected to described final response page.
9. a redirection device is characterized in that, comprising:
First acquisition module is used to obtain the response page that service provider server returns to portable terminal, and described response page comprises the redirect link of pointing to redirect response;
Second acquisition module is used to obtain the link of the final response page of described redirect link correspondence;
The replacement module is used for the redirect link of described response page is replaced to the link of described final response page;
First sending module is used for returning to described portable terminal the response page of the link that includes final response page.
10. device according to claim 9 is characterized in that, described first acquisition module specifically is used for scanning described response page according to the condition of being redirected, and obtains the redirect link of pointing to redirect response in the described response page.
11. device according to claim 10 is characterized in that, described second acquisition module comprises:
Memory cell is used to store linking of the final response page corresponding with described redirect link;
Matching unit is used for matching linking of the final response page corresponding with described redirect link from described memory cell.
12. device according to claim 10 is characterized in that, described second acquisition module comprises:
Pre-reading unit is used for according to described redirect link, reads the final response page of described redirect link correspondence in advance;
Acquiring unit is used to obtain the link of the final response page that described pre-reading unit reads in advance.
13. a redirection device is characterized in that, comprising:
Forwarding module is used for the service request that transmitting mobile terminal sends to service provider server;
Receiver module is used to receive described service provider server and responds the service response that described service request is returned;
Redirection module is used for being redirected according to described redirect response when described service response is redirect response, and the service response of returning until described service provider server is final response page;
Generation module is used to generate the redirect response that is redirected to described final response page;
Second sending module is used for returning to described portable terminal the redirect response of the address that includes final response page.
CN200910133412A 2009-03-31 2009-03-31 Redirecting method and device Pending CN101854375A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910133412A CN101854375A (en) 2009-03-31 2009-03-31 Redirecting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910133412A CN101854375A (en) 2009-03-31 2009-03-31 Redirecting method and device

Publications (1)

Publication Number Publication Date
CN101854375A true CN101854375A (en) 2010-10-06

Family

ID=42805640

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910133412A Pending CN101854375A (en) 2009-03-31 2009-03-31 Redirecting method and device

Country Status (1)

Country Link
CN (1) CN101854375A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103856540A (en) * 2012-12-06 2014-06-11 腾讯科技(深圳)有限公司 Response processing method and device
CN104468363A (en) * 2013-09-18 2015-03-25 华为终端有限公司 Page redirection method, page redirection system, router equipment and terminal equipment
CN104486398A (en) * 2014-12-10 2015-04-01 北京奇虎科技有限公司 Message transmission method and page client side
CN105791450A (en) * 2014-12-19 2016-07-20 中兴通讯股份有限公司 Redirecting method, device and system for domain name system DNS
WO2017067373A1 (en) * 2015-10-23 2017-04-27 中兴通讯股份有限公司 Data push method and apparatus
CN108021564A (en) * 2016-10-31 2018-05-11 阿里巴巴集团控股有限公司 A kind of method and apparatus of page reorientation
CN110661787A (en) * 2019-09-04 2020-01-07 苏宁云计算有限公司 Method and device for capturing Http redirection state code and computer equipment
CN110750741A (en) * 2019-10-18 2020-02-04 深圳市比量科技传媒有限公司 Webpage link skipping processing method, computer device and storage medium

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103856540A (en) * 2012-12-06 2014-06-11 腾讯科技(深圳)有限公司 Response processing method and device
US10250714B2 (en) 2013-09-18 2019-04-02 Huawei Device Co., Ltd. Page redirection method, routing device, terminal device and system
CN104468363A (en) * 2013-09-18 2015-03-25 华为终端有限公司 Page redirection method, page redirection system, router equipment and terminal equipment
CN104486398A (en) * 2014-12-10 2015-04-01 北京奇虎科技有限公司 Message transmission method and page client side
CN105791450A (en) * 2014-12-19 2016-07-20 中兴通讯股份有限公司 Redirecting method, device and system for domain name system DNS
WO2017067373A1 (en) * 2015-10-23 2017-04-27 中兴通讯股份有限公司 Data push method and apparatus
CN106612311A (en) * 2015-10-23 2017-05-03 中兴通讯股份有限公司 Data push method and device
CN108021564A (en) * 2016-10-31 2018-05-11 阿里巴巴集团控股有限公司 A kind of method and apparatus of page reorientation
CN108021564B (en) * 2016-10-31 2021-11-26 阿里巴巴集团控股有限公司 Method and equipment for redirecting page
CN110661787A (en) * 2019-09-04 2020-01-07 苏宁云计算有限公司 Method and device for capturing Http redirection state code and computer equipment
WO2021042815A1 (en) * 2019-09-04 2021-03-11 苏宁易购集团股份有限公司 Http redirect status code capture method and apparatus, and computer device
CN110750741A (en) * 2019-10-18 2020-02-04 深圳市比量科技传媒有限公司 Webpage link skipping processing method, computer device and storage medium
CN110750741B (en) * 2019-10-18 2022-12-13 深圳市比量科技传媒有限公司 Webpage link skipping processing method, computer device and storage medium

Similar Documents

Publication Publication Date Title
CN101854375A (en) Redirecting method and device
JP4982455B2 (en) Mobile web service system and method
CN101150803B (en) Method for micro-browser to process network data, micro-browser and its server
EP0779759B1 (en) A method and architecture for an interactive two-way data communication network
JP4286143B2 (en) System and method for processing extensible markup language (XML) documents
CN102457565B (en) The method of mobile terminal network visiting and proxy server
CN102202100B (en) Method for processing network data by micro browser, micro browser and server thereof
CN101446983B (en) Method, system and equipment for realizing web page acquisition by mobile terminal
CN102246493B (en) Methods and apparatus for obtaining content with reduced access times
US20030100320A1 (en) Efficient hyperlinks for transmitted hyperlinked information
CN103067423B (en) The method of browser kernel adaptation and browser
CN101626395A (en) Method and system for guiding mobile terminal to access world wide web by two-dimensional code
US20110230176A1 (en) GUI Based Information Access, Web Search and Browsing over SMS
CN101355565A (en) Method and server for providing page service for various browsers
CN100415006C (en) Short message network address device and system and method for realizing short message value added service
CN101383848A (en) System and method for mobile web service
US6941337B2 (en) Interaction arrangement for a sequence of interactions providing a service to a user
CN100471151C (en) Method and devices for browsing WML or RSS web page on computer
CN101547256A (en) Mobile terminal, news acquisition method thereof, and system terminal
CN103179152B (en) Business information delivery method, system and business platform
CN101997883A (en) Network structure of mobile website for mobile terminal access
CN101389089B (en) Mobile terminal adaptation processing method and apparatus based on WAP system
CN101997882A (en) Network service of mobile website for mobile terminal to visit
CN201100950Y (en) Intelligent redirection WAP gateway
Zhang et al. Personalized content delivery to mobile devices

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20101006