WO2016026400A1 - 一种处理连续重定向的方法和装置 - Google Patents
一种处理连续重定向的方法和装置 Download PDFInfo
- Publication number
- WO2016026400A1 WO2016026400A1 PCT/CN2015/086614 CN2015086614W WO2016026400A1 WO 2016026400 A1 WO2016026400 A1 WO 2016026400A1 CN 2015086614 W CN2015086614 W CN 2015086614W WO 2016026400 A1 WO2016026400 A1 WO 2016026400A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- service request
- redirection
- service
- redirect
- destination address
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 96
- 238000001514 detection method Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000003672 processing method Methods 0.000 description 3
- 235000008694 Humulus lupulus Nutrition 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/563—Data redirection of data network streams
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/40—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection
Definitions
- the present application relates to the field of the Internet, and in particular, to a method and apparatus for processing continuous redirection.
- the service request is sent to address A, after which the service request is redirected by server 302 to address B, after which the service request is received by the server.
- 302 redirects to address C, after which the service request is redirected by server 302 to address D, and so on, the service request may be redirected 302 multiple times.
- the browser has a limit on the number of 302 redirects. If the number of 302 redirects exceeds the limit, the browser will report the error, such as outputting a 404 error. At this point, the business will not be able to continue, that is, the business will be interrupted, thus affecting the user's business experience.
- the embodiment of the present invention provides a method and an apparatus for processing continuous redirection, which can avoid error processing caused by the number of redirections in the redirection exceeding the limit number of times.
- the embodiment of the present application provides a method for processing continuous redirection, including:
- the header of the hypertext markup language HTML of the intermediate page includes a preset instruction for implementing to redirect the service request to the destination address after inserting the intermediate page.
- the method further includes: storing, in the memory, a correspondence between the service identifier corresponding to the service request and the number of redirections; wherein, the initial value of the redirection number is 0;
- the service identifier corresponding to the service request is determined, and the number of redirects corresponding to the service identifier is incremented by one in the memory;
- the service identifier corresponding to the service request is determined, and the number of redirects corresponding to the service identifier is cleared in the memory.
- the method further includes: when the number of redirections does not reach the preset threshold, if there is an error processing caused by the number of times the redirection of the service request exceeds a preset threshold, determining the service identifier corresponding to the service request, and in the memory Querying the number of redirects corresponding to the service identifier;
- the preset threshold is adjusted to the number of redirections corresponding to the service identifier, and the number of redirections corresponding to the service identifier is cleared in the memory.
- the method further includes: intercepting all service requests in the process of redirecting the service request to the destination address, to select from all the service requests that need to be heavy Directional processing of business requests.
- the redirection specifically includes 302 redirection.
- the embodiment of the present application provides a redirection processing device, where the redirection processing device includes:
- a determining module configured to determine a number of redirects corresponding to the service request when receiving a service request that needs to be redirected;
- a determining module configured to determine whether the number of redirects reaches a preset threshold
- a processing module configured to: when the number of redirects reaches a preset threshold, interrupt the redirect of the service request, and continue to redirect the service request to a destination address after interrupting the redirect of the service request;
- the service request is redirected to the destination address.
- the processing module is specifically configured to temporarily insert an intermediate page to interrupt the continuous redirection corresponding to the service request by inserting the intermediate page; after interrupting the redirection of the service request by inserting the intermediate page, continue The service request is redirected to the destination address.
- the header of the hypertext markup language HTML of the intermediate page includes a preset instruction for implementing to redirect the service request to the destination address after inserting the intermediate page.
- the processing module is specifically configured to invoke an interrupt mode configured in the pool of the 302 redirect method, and interrupt the continuous redirect corresponding to the service request by using the interrupt mode; interrupting the service request by using the interrupt mode After the orientation, the service request is continued to be redirected to the destination address; wherein the continuous 302 redirect method pool is configured with an interrupt mode for interrupting the redirect of the service request.
- the determining module is further configured to store, in the memory, a correspondence between a service identifier corresponding to the service request and a redirection number; wherein, the initial value of the redirection number is 0;
- the service identifier corresponding to the service request is determined, and the number of redirects corresponding to the service identifier is incremented by one in the memory;
- the service identifier corresponding to the service request Determining, by the determining module, the service identifier corresponding to the service request, if the number of redirection times does not reach a preset threshold, if an operation request occurs that the number of redirection times exceeds a preset threshold, the service identifier corresponding to the service request is determined, and Querying, in the memory, the number of redirects corresponding to the service identifier;
- the preset threshold is adjusted to the number of redirections corresponding to the service identifier, and the number of redirections corresponding to the service identifier is cleared in the memory.
- the determining module is further configured to intercept all service requests in the process of redirecting the service request to the destination address before receiving the service request that needs to be redirected, so as to select from all the service requests Directional processing of business requests.
- the redirection specifically includes 302 redirection.
- the redirection processing device determines whether the redirection number reaches a preset threshold, and when the redirection number reaches a preset threshold, interrupts the redirection of the service request, and After interrupting the redirect of the service request, the service request is redirected to the destination address, thereby avoiding the error processing (such as 404 error) caused by the number of redirects exceeding the limit of the browser, thereby avoiding service interruption and service failure.
- error processing such as 404 error
- FIG. 1 is a schematic flowchart of a method for processing continuous redirection according to Embodiment 1 of the present application;
- FIG. 2 is a schematic structural diagram of a redirection processing apparatus according to Embodiment 2 of the present application.
- FIG. 3 is a schematic flowchart of a method for processing continuous redirection according to Embodiment 2 of the present application;
- FIG. 4 is a schematic structural diagram of a redirection processing apparatus according to Embodiment 3 of the present application.
- a method for processing continuous redirection provided in Embodiment 1 of the present application is applied to a network including a client, a server, and a redirection processing device, and the network may be a large website or distributed. system.
- the redirection processing device can be deployed as a functional module on the server, and the redirection processing device can also be a separate device in the network.
- the redirection processing device is configured to process a redirection process of the service request. For example, when a client (browser) sends a service request (ie, a WEB service request) to the server, the service request is sent to address A.
- the subsequent redirection process is processed by the redirection processing device, such as the redirection processing device redirecting the service request to the address B, after which the redirection processing device redirects the service request to the address C, after which the redirection processing device will The service request is redirected to address D, and so on.
- the method for processing continuous redirection includes the following steps:
- Step 101 After receiving the service request that needs to be redirected, the redirection processing device determines the number of redirections corresponding to the service request, and determines whether the redirection number reaches a preset threshold. If the preset threshold is reached, step 102 is performed; if the preset threshold is not reached, step 103 is performed.
- the preset threshold may be set by the redirect processing device based on a limit of the number of times the browser redirects. For example, when the number of redirects exceeds 5 times, the browser performs error processing, and the redirection processing device can set the preset threshold to 4 times (5-1).
- the directional processing device intercepts all service requests to select a service request from all service requests that needs to be redirected. Based on this, the redirect processing device needs to intercept the service request for the service request sent by the client to the server. If the service request does not need to be redirected, the redirection processing device releases the service request to perform subsequent service processing on the service request, and the process is not described in detail. If the service request needs to be redirected, the redirection processing device determines that the service request needs to be redirected, determines the number of redirections corresponding to the service request, and determines whether the redirection number reaches a preset threshold.
- Step 102 The redirection processing device interrupts the redirection of the service request, and after the redirection of the service request is interrupted, the redirection processing device continues to redirect the service request to the destination address.
- step 103 the redirect processing device directly redirects the service request to the destination address.
- the redirection processing device needs to store the correspondence between the service identifier corresponding to the service request and the number of redirections in the memory; wherein the initial value of the redirection number is 0. Based on this, when the service request needs to be redirected, the redirection processing device determines the service identifier corresponding to the service request, and obtains the service identifier by querying the correspondence between the service identifier and the redirection number stored in the memory. Corresponding redirection times, and determining that the redirection number is the number of redirections corresponding to the service request, and then determining whether the redirection number reaches a preset threshold.
- the redirecting processing device redirects the service request to the destination address, the service identifier corresponding to the service request needs to be determined, and the number of redirects corresponding to the service identifier is increased by one in the memory.
- the redirection processing device interrupts the redirection of the service request, the service identifier corresponding to the service request needs to be determined, and the number of redirection times corresponding to the service identifier is cleared in the memory.
- the redirection processing device interrupts the redirection of the service request, and continues to redirect the service request to the destination address after the redirection of the service request, including but not limited to the following:
- the device temporarily inserts the intermediate page to interrupt the continuous redirect corresponding to the service request through the intermediate page; further, the redirect processing device continues to redirect the service request to the destination address after interrupting the redirect of the service request by inserting the intermediate page.
- the intermediate page includes, but is not limited to, a 200 OK page (for returning an acknowledgment to the client).
- the redirect processing device temporarily inserts an intermediate page to interrupt the continuous redirect corresponding to the service request by inserting the intermediate page, and after the intermediate page is refreshed, the redirect processing device can continue to redirect the service request to the destination address. , that is, redirect to a subsequent page or URL (Uniform Resource Locator) address, and then let the business continue.
- URL Uniform Resource Locator
- the head (header) of the HTML (Hyper Text Markup Language) of the middle page includes a method for enabling the redirect processing device to continue to redirect the service request to the destination address after inserting the intermediate page.
- the preset instruction in particular, the preset instruction may be a piece of code, and the code may carry a destination address that the service request needs to be redirected.
- the http-equiv attribute is refresh to indicate that the code is used to automatically refresh the page.
- the content attribute is 0 to indicate that the page content is empty, and the nextUrl is for the purpose of redirecting the service request. address.
- the intermediate page may interrupt the continuous redirection corresponding to the service request.
- the automatic refresh of the intermediate page can be implemented based on the http-equiv attribute in the preset instruction being refresh. After the automatic refresh, based on the inside of the nextUrl in the preset instruction, the redirection processing device can continue to redirect the service request to the destination address, that is, redirect to the subsequent page or URL address, and continue to perform subsequent services.
- the redirection processing device interrupts the redirection of the service request, and continues to redirect the service request to the destination address after the redirection of the service request, including but not limited to the following:
- the device instructs the continuous 302 to redirect the interrupt mode configured in the method pool, and interrupts the continuous redirect corresponding to the service request by using the interrupt mode; after interrupting the redirect of the service request by the interrupt mode, the service request is redirected to the destination address;
- the continuous 302 redirect method pool is configured with an interrupt mode for interrupting the service request.
- the redirection processing device when the number of redirections does not reach the preset threshold, if there is an error processing caused by the number of redirection times of the service request exceeding a preset threshold (such as a browser output 404 error), the redirection processing device is configured.
- the preset threshold is too large. Based on this, the redirection processing device needs to adjust the preset threshold configured on the redirection processing device.
- the redirection processing device needs to determine the service identifier corresponding to the service request, and query the memory for the current redirection number of the service identifier. Then, the redirection processing device adjusts the preset threshold configured on the redirection processing device to the number of redirections currently corresponding to the service identifier.
- the redirection processing device needs to clear the number of redirections corresponding to the service identifier in the memory.
- the redirection includes, but is not limited to, 302 redirection.
- the embodiment of the present application has at least the following advantages:
- the redirection processing device determines whether the redirection number reaches a preset threshold, and the number of redirections When the preset threshold is reached, the redirection of the service request is interrupted, and after the service request is redirected, the service request is redirected to the destination address, thereby avoiding the error caused by the number of times that the 302 redirection exceeds the limit of the browser. Processing (such as 404 errors), and then avoid business interruptions and business failures, improve the business experience and user experience.
- the second embodiment of the present application provides a method for processing continuous redirection, which is applied to a network including a client, a server, and a redirection processing device, and the network may be a large website or a distributed system.
- the redirection processing device can be deployed as a functional module on the server, and the redirection processing device can also be a separate device in the network.
- the redirection processing device is configured to process a redirection process of the service request. For example, when a client (browser) sends a service request (ie, a WEB service request) to the server, the service request is sent to address A.
- the subsequent redirection process is processed by the redirection processing device, for example, the redirection processing device redirects the service request to the address B, and then the redirection processing device redirects the service request. To address C, the redirect processing device then redirects the service request to address D, and so on.
- the redirection processing device may specifically include the following functional modules: 302 redirection detection module, decision control module, and continuous 302 redirection method pool. , data cache module, configuration module.
- the function modules in the redirection processing device may be integrated into one or may be deployed separately. Each function module can be combined into one module, or can be further split into multiple sub-modules.
- the 302 redirect detection module is primarily responsible for intercepting 302 redirect requests. For the non-302 redirect, the 302 redirect detection module directly releases and continues to perform subsequent business operations. For the 302 redirection, if the 302 redirection detection module finds that there is a 302 redirection, the 302 redirection related information (such as a redirect address, etc.) is synchronized to the decision control module.
- the decision control module is responsible for the linkage 302 redirection detection module, the continuous 302 redirection method pool, the data cache module, and the configuration module.
- the decision control module receives the 302 redirection information of the 302 redirection detection module, and calculates whether there is a continuous 302 redirection according to the data caching module and the related information of the configuration module, and whether the number of consecutive 302 redirection times reaches the configured browsing. The maximum number of times. If the maximum number of browsers is reached, the decision control module invokes the method in the continuous 302 redirect method pool for corresponding processing. If the number of 302 redirects has not reached the maximum number of browsers before the 404 error has occurred, the decision control module is responsible for recording the alarm information and refreshing the memory in the data cache module by calling the configuration module to modify the maximum number of browsers.
- Continuous 302 redirect method pool When there is a continuous 302 redirection, and the decision control module knows that the number of consecutive 302 redirections reaches the maximum number of browsers, the continuous 302 redirection method pool provides a method for the decision control module, and the decision control module calls consecutive 302 The methods in the directed method pool are processed accordingly.
- the continuous 302 redirect method pool can be configured with multiple processing methods, and the application can select the processing method according to the actual situation.
- the method configured in the continuous 302 redirect method pool includes: temporarily inserting an intermediate page, returning 200, interrupting the continuous 302 redirect, and redirecting to a subsequent web page or URL address after refreshing, and letting the business continue. Enter In one step, the continuous 302 redirect method pool also needs to provide functions such as adding, deleting, and modifying processing methods.
- Data cache module It is mainly responsible for the configuration information of the cached application, such as the maximum number of cached browsers and the number of redirects corresponding to the service identifier. Further, the data cache module needs to provide a function such as timeout release of the cache, that is, after the configuration information is timed out (for example, the data is cached for 24 hours), the data cache module needs to delete the cached configuration information.
- Configuration module Based on this configuration module, the application configures the number of times that the corresponding browser can continuously jump 302 according to its own service. Based on this configuration module, when the number of consecutive 302 hops reaches the configured value, the corresponding solution is configured, that is, the method in the continuous 302 redirection method pool is configured. Further, the configuration module also needs to provide functions such as adding, deleting, and modifying configuration information.
- the method for processing continuous redirection includes the following steps:
- Step 301, 302 redirects the detection module to intercept all service requests that need to be redirected to the destination address, and sends a service request that needs to be redirected to the destination address to the decision control module.
- the 302 redirect detection module in the process of redirecting the service request (ie, the WEB service request) 302 to the destination address, the 302 redirect detection module needs to intercept all service requests that need to be redirected to the destination address. Based on this, for the service request sent by the client to the server, the 302 redirect detection module needs to intercept the service request. If the service request does not need to perform the 302 redirection process, the 302 redirection detection module releases the service request to perform subsequent service processing on the service request, and the process is not described in detail.
- the 302 redirection detection module determines that the service request 302 needs to be redirected, and sends a service request that needs to be redirected to the destination address to the decision control module for subsequent processing.
- Step 302 The decision control module determines the number of redirections corresponding to the service request, and determines whether the redirection number reaches a preset threshold (that is, the maximum number of browsers configured by the configuration module). If the preset threshold is not reached, step 303 is performed; if the preset threshold is reached, step 304 is performed.
- the preset threshold is the maximum number of consecutive 302 redirects that are acceptable to the browser configured by the configuration module.
- the data cache module needs to store the service corresponding to the service request in the memory.
- the decision control module needs to determine the service identifier corresponding to the service request, and obtain the service by querying the correspondence between the service identifier and the number of redirects stored in the memory.
- the number of redirects is determined, and the number of redirects is determined by the number of redirects corresponding to the service request, and then the number of redirects reaches a preset threshold.
- the data cache module needs to store the correspondence between the service identifier corresponding to the service request and the number of redirections in the memory. Each time the service request 302 is redirected to the destination address, the data cache module needs to determine the service corresponding to the service request. ID, plus 1 for the number of redirects corresponding to the service ID in memory. When the 302 redirection of the service request is interrupted, the data caching module needs to determine the service identifier corresponding to the service request, and clear the number of redirection times corresponding to the service identifier in the memory.
- step 303 the decision control module directly redirects the service request 302 to the destination address.
- the decision control module notifies 302 that the redirect detection module continues to monitor 302 the redirect, ie, step 301 is performed.
- Step 304 The decision control module invokes the method provided in the pool 302 redirect method pool to interrupt the 302 redirect of the service request by using the method provided in the continuous 302 redirect method pool, and continues after the 302 redirect of the interrupt service request.
- the service request 302 is redirected to the destination address.
- the decision control module notifies 302 that the redirect detection module continues to monitor 302 the redirect, ie, step 301 is performed.
- the decision control module interrupts the 302 redirect of the service request, and after the 302 redirect of the interrupt service request, continues to redirect the service request 302 to the destination address, specifically including
- the method is not limited to the following: the decision control module temporarily inserts an intermediate page to interrupt the continuous 302 redirection of the service request through the intermediate page; further, the decision control module determines the control module after interrupting the 302 request to interrupt the service request by inserting the intermediate page.
- the service request 302 can continue to be redirected to the destination address.
- the intermediate page includes but is not limited to a 200 OK page.
- Decision control module through temporary insertion Enter an intermediate page to interrupt the 302 consecutive redirects corresponding to the service request through the intermediate page, and after the intermediate page is refreshed, the decision control module can continue to redirect the service request 302 to the destination address, ie, 302 redirects to subsequent The page or URL address, which in turn allows the business to proceed.
- the intermediate page can interrupt the continuous 302 redirection corresponding to the service request, and implement automatic refresh of the intermediate page, and cause the decision control module to continue to redirect the service request 302 to the destination address and continue to perform subsequent services.
- the decision control module needs to re-adjust the preset threshold of the data cache module cache. In the process of adjusting the preset threshold, the decision control module needs to determine the service identifier corresponding to the service request, and query the memory for the current number of redirects corresponding to the service identifier.
- the decision control module adjusts the preset threshold of the data cache module cache to the current number of redirects corresponding to the service identifier. Further, if there is an error processing caused by the number of times the redirection of the service request exceeds a preset threshold (such as a browser output 404 error), the decision control module needs to clear the number of redirections corresponding to the service identifier in the memory.
- a preset threshold such as a browser output 404 error
- the embodiment of the present application has at least the following advantages:
- the decision control module determines whether the redirection number reaches a preset threshold, and the number of redirections.
- the preset threshold is reached, the 302 redirect of the service request is interrupted, and after the 302 redirect of the interrupt service request, the service request 302 is redirected to the destination address, thereby avoiding the number of 302 redirects exceeding the limit of the browser limit.
- the resulting error handling which in turn avoids business interruptions and business failures, improves the business experience and user experience.
- the redirection is described by using 302 redirection.
- the redirection is not limited thereto.
- the embodiment of the present application further provides a redirection processing device.
- the redirection processing device specifically includes:
- the determining module 11 is configured to determine, according to the service request that needs to perform the redirection process, the number of redirections corresponding to the service request;
- the determining module 12 is configured to determine whether the number of redirects reaches a preset threshold
- the processing module 13 is configured to interrupt the redirect of the service request when the number of redirects reaches a preset threshold, and continue to redirect the service request to the destination address after interrupting the redirect of the service request ;
- the service request is redirected to the destination address.
- the processing module 13 is specifically configured to temporarily insert an intermediate page to interrupt the continuous redirection corresponding to the service request by inserting the intermediate page; after interrupting the redirection of the service request by inserting the intermediate page, continue Redirect the service request to the destination address.
- the header of the hypertext markup language HTML of the intermediate page includes a preset instruction for implementing to redirect the service request to the destination address after inserting the intermediate page, and the preset instruction is The destination address that the service request needs to be redirected may be carried.
- the preset instruction may specifically be a program code.
- the processing module 13 is specifically configured to invoke an interrupt mode configured in the pool of the 302 redirect method, and interrupt the continuous redirect corresponding to the service request by using the interrupt mode; interrupting the service request by using the interrupt mode After the redirecting, the service request is redirected to the destination address; wherein the continuous 302 redirect method pool is configured with an interrupt mode for interrupting the redirect of the service request.
- the determining module 11 is further configured to store, in the memory, a correspondence between a service identifier corresponding to the service request and a redirection number; wherein, the initial value of the redirection number is 0;
- the service identifier corresponding to the service request is determined, and the number of redirects corresponding to the service identifier is incremented by one in the memory;
- the service identifier corresponding to the service request is determined, and the number of redirects corresponding to the service identifier is cleared in the memory.
- the determining module 11 is further configured to: when the number of redirection times does not reach a preset threshold, if an operation request occurs that the number of redirection times exceeds a preset threshold, the service identifier corresponding to the service request is determined, And querying, in the memory, the number of redirects corresponding to the service identifier;
- the preset threshold is adjusted to the number of redirections corresponding to the service identifier, and the number of redirections corresponding to the service identifier is cleared in the memory.
- the determining module 11 is further configured to intercept all service requests in the process of redirecting the service request to the destination address before receiving the service request that needs to be redirected, so as to select from all the service requests. Redirect the processed business request.
- the redirection specifically includes 302 redirection.
- the modules of the device of the present application may be integrated into one or may be deployed separately.
- the above modules can be combined into one module, or can be further split into multiple sub-modules.
- modules in the apparatus in the embodiments may be distributed in the apparatus of the embodiment according to the description of the embodiments, or the corresponding changes may be located in one or more apparatuses different from the embodiment.
- the modules of the above embodiments may be combined into one module, or may be further split into multiple sub-modules.
- the serial numbers of the embodiments of the present application are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
- the above disclosure is only a few specific embodiments of the present application, but the present application is not limited thereto, and any changes that can be made by those skilled in the art should fall within the protection scope of the present application.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Multimedia (AREA)
- Information Transfer Between Computers (AREA)
- Communication Control (AREA)
Abstract
Description
Claims (16)
- 一种处理连续重定向的方法,其特征在于,包括:在接收到需要进行重定向处理的业务请求时,确定所述业务请求对应的重定向次数,并判断所述重定向次数是否达到预设阈值;如果是,则中断所述业务请求的重定向,并在中断所述业务请求的重定向之后,继续将所述业务请求重定向到目的地址;如果否,则将所述业务请求重定向到目的地址。
- 如权利要求1所述的方法,其特征在于,所述中断所述业务请求的重定向,并在中断所述业务请求的重定向之后,继续将所述业务请求重定向到目的地址的过程,具体包括:临时插入中间页面,以通过插入所述中间页面中断所述业务请求对应的连续重定向;在通过插入所述中间页面中断所述业务请求的重定向之后,继续将所述业务请求重定向到目的地址。
- 如权利要求2所述的方法,其特征在于,所述中间页面的超文本标记语言HTML的头head中包括了用于实现在插入所述中间页面之后,继续将所述业务请求重定向到目的地址的预设指令。
- 如权利要求1所述的方法,其特征在于,所述中断所述业务请求的重定向,并在中断所述业务请求的重定向之后,继续将所述业务请求重定向到目的地址的过程,具体包括:调用连续302重定向方法池内配置的中断方式,并通过所述中断方式中断所述业务请求对应的连续重定向;在通过所述中断方式中断所述业务请求的重定向之后,继续将所述业务请求重定向到目的地址;其中,所述连续302重定向方法池内配置了用于中断业务请求的重定向的中断方式。
- 如权利要求1-4任一项所述的方法,其特征在于,所述方法还包括:在内存中存储业务请求对应的业务标识与重定向次数之间的对应关系; 其中,所述重定向次数的初始值为0;每次将业务请求重定向到目的地址时,确定所述业务请求对应的业务标识,并在内存中将所述业务标识对应的重定向次数加1;在中断业务请求的重定向时,确定所述业务请求对应的业务标识,并在内存中将所述业务标识对应的重定向次数清零。
- 如权利要求5所述的方法,其特征在于,所述方法进一步包括:当所述重定向次数未达到预设阈值时,如果有业务请求发生重定向次数超过预设阈值导致的报错处理,则确定所述业务请求对应的业务标识,并在内存中查询所述业务标识对应的重定向次数;将所述预设阈值调整为所述业务标识对应的重定向次数,并在内存中将所述业务标识对应的重定向次数清零。
- 如权利要求1-4任一项所述的方法,其特征在于,所述在接收到需要进行重定向处理的业务请求之前,所述方法进一步包括:在将业务请求重定向到目的地址的过程中,拦截所有业务请求,以从所有业务请求中选择出需要进行重定向处理的业务请求。
- 如权利要求1-4任一项所述的方法,其特征在于,所述重定向具体包括302重定向。
- 一种重定向处理装置,其特征在于,所述重定向处理装置包括:确定模块,用于在接收到需要进行重定向处理的业务请求时,确定所述业务请求对应的重定向次数;判断模块,用于判断所述重定向次数是否达到预设阈值;处理模块,用于当所述重定向次数达到预设阈值时,中断所述业务请求的重定向,并在中断所述业务请求的重定向之后,继续将所述业务请求重定向到目的地址;当所述重定向次数未达到预设阈值时,将所述业务请求重定向到目的地 址。
- 如权利要求9所述的重定向处理装置,其特征在于,所述处理模块,具体用于临时插入中间页面,以通过插入所述中间页面中断所述业务请求对应的连续重定向;在通过插入所述中间页面中断所述业务请求的重定向之后,继续将所述业务请求重定向到目的地址。
- 如权利要求10所述的重定向处理装置,其特征在于,所述中间页面的超文本标记语言HTML的头head中包括了用于实现在插入所述中间页面之后,继续将所述业务请求重定向到目的地址的预设指令。
- 如权利要求9所述的重定向处理装置,其特征在于,所述处理模块,具体用于调用连续302重定向方法池内配置的中断方式,并通过所述中断方式中断所述业务请求对应的连续重定向;在通过所述中断方式中断所述业务请求的重定向之后,继续将所述业务请求重定向到目的地址;其中,所述连续302重定向方法池内配置了用于中断业务请求的重定向的中断方式。
- 如权利要求9-12任一项所述的重定向处理装置,其特征在于,所述确定模块,进一步用于在内存中存储业务请求对应的业务标识与重定向次数之间的对应关系;其中,所述重定向次数的初始值为0;每次将业务请求重定向到目的地址时,确定所述业务请求对应的业务标识,并在内存中将所述业务标识对应的重定向次数加1;在中断业务请求的重定向时,确定所述业务请求对应的业务标识,并在内存中将所述业务标识对应的重定向次数清零。
- 如权利要求13所述的重定向处理装置,其特征在于,所述确定模块,进一步用于当所述重定向次数未达到预设阈值时,如果有业务请求发生重定向次数超过预设阈值导致的报错处理,则确定所述业务请求对应的业务标识,并在内存中查询所述业务标识对应的重定向次数;将所述预设阈值调整为所述业务标识对应的重定向次数,并在内存中将所述业务标识对应的重定向次数清零。
- 如权利要求9-12任一项所述的重定向处理装置,其特征在于,所述确定模块,进一步用于在接收到需要进行重定向处理的业务请求之前,在将业务请求重定向到目的地址的过程中,拦截所有业务请求,以从所有业务请求中选择出需要进行重定向处理的业务请求。
- 如权利要求9-12任一项所述的重定向处理装置,其特征在于,所述重定向具体包括302重定向。
Priority Applications (7)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
ES15834055T ES2829832T3 (es) | 2014-08-22 | 2015-08-11 | Método y dispositivo para procesar el redireccionamiento continuo |
EP15834055.4A EP3185512B8 (en) | 2014-08-22 | 2015-08-11 | Method and device for processing continuous redirection |
JP2017510569A JP6514322B2 (ja) | 2014-08-22 | 2015-08-11 | 連続的リダイレクションを処理する方法及び装置 |
KR1020177004878A KR101970901B1 (ko) | 2014-08-22 | 2015-08-11 | 연속적 리디렉션을 처리하기 위한 방법 및 디바이스 |
PL15834055T PL3185512T3 (pl) | 2014-08-22 | 2015-08-11 | Sposób i urządzenie do przetwarzania ciągłego przekierowania |
SG11201700630RA SG11201700630RA (en) | 2014-08-22 | 2015-08-11 | Method and device for processing continuous redirection |
US15/505,418 US10673972B2 (en) | 2014-08-22 | 2015-08-11 | Method and device for processing continuous redirection |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410418834.4A CN105450694B (zh) | 2014-08-22 | 2014-08-22 | 一种处理连续重定向的方法和装置 |
CN201410418834.4 | 2014-08-22 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016026400A1 true WO2016026400A1 (zh) | 2016-02-25 |
Family
ID=55350192
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/086614 WO2016026400A1 (zh) | 2014-08-22 | 2015-08-11 | 一种处理连续重定向的方法和装置 |
Country Status (10)
Country | Link |
---|---|
US (1) | US10673972B2 (zh) |
EP (1) | EP3185512B8 (zh) |
JP (1) | JP6514322B2 (zh) |
KR (1) | KR101970901B1 (zh) |
CN (1) | CN105450694B (zh) |
ES (1) | ES2829832T3 (zh) |
HK (1) | HK1222056A1 (zh) |
PL (1) | PL3185512T3 (zh) |
SG (1) | SG11201700630RA (zh) |
WO (1) | WO2016026400A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112925628A (zh) * | 2021-03-29 | 2021-06-08 | 建信金融科技有限责任公司 | 一种服务管理方法和装置 |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106020880B (zh) * | 2016-05-17 | 2019-05-07 | 珠海豹趣科技有限公司 | 一种浏览器启动方法、装置及电子设备 |
US10733376B2 (en) | 2017-03-01 | 2020-08-04 | Google Llc | Delivering auto-play media content element from cross origin resources |
CN109816453B (zh) * | 2019-01-31 | 2021-04-16 | 珠海天燕科技有限公司 | 一种推广资源链接的检测方法及装置 |
CN110362761B (zh) * | 2019-06-27 | 2023-02-07 | 上海淇馥信息技术有限公司 | 一种基于网页地址监听的网页跳转方法、装置和电子设备 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102098594A (zh) * | 2011-02-25 | 2011-06-15 | 清华大学 | 一种基于信息扩散光网络的连接建立信令冲突避免方法 |
CN102291390A (zh) * | 2011-07-14 | 2011-12-21 | 南京邮电大学 | 一种基于云计算平台的防御拒绝服务攻击的方法 |
CN102870470A (zh) * | 2012-06-27 | 2013-01-09 | 华为技术有限公司 | 重定向处理方法、设备及系统 |
CN103019960A (zh) * | 2012-12-03 | 2013-04-03 | 华为技术有限公司 | 分布式缓存方法及系统 |
Family Cites Families (37)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5222125A (en) | 1991-09-03 | 1993-06-22 | At&T Bell Laboratories | System for providing personalized telephone calling features |
US5432845A (en) | 1992-12-21 | 1995-07-11 | At&T Corp. | Post answer telephone call redirection or rerouting |
US6820133B1 (en) * | 2000-02-07 | 2004-11-16 | Netli, Inc. | System and method for high-performance delivery of web content using high-performance communications protocol between the first and second specialized intermediate nodes to optimize a measure of communications performance between the source and the destination |
US6829654B1 (en) | 2000-06-23 | 2004-12-07 | Cloudshield Technologies, Inc. | Apparatus and method for virtual edge placement of web sites |
US20020194483A1 (en) | 2001-02-25 | 2002-12-19 | Storymail, Inc. | System and method for authorization of access to a resource |
WO2002039669A2 (en) * | 2000-11-08 | 2002-05-16 | Sprint Spectrum L.P. | Method and system for providing services in communications networks |
US20020078191A1 (en) | 2000-12-20 | 2002-06-20 | Todd Lorenz | User tracking in a Web session spanning multiple Web resources without need to modify user-side hardware or software or to store cookies at user-side hardware |
WO2002079905A2 (en) | 2001-04-02 | 2002-10-10 | Akamai Technologies, Inc. | Scalable, high performance and highly available distributed storage system for internet content |
US6876656B2 (en) * | 2001-06-15 | 2005-04-05 | Broadcom Corporation | Switch assisted frame aliasing for storage virtualization |
US20030093523A1 (en) * | 2001-11-15 | 2003-05-15 | Cranor Charles D. | Method for associating clients with domain name servers |
US7289519B1 (en) | 2002-05-01 | 2007-10-30 | Cisco Technology, Inc. | Methods and apparatus for processing content requests using domain name service |
US7929953B2 (en) | 2003-08-05 | 2011-04-19 | Roamware, Inc. | Controlling traffic of an inbound roaming mobile station between a first VPMN, a second VPMN and a HPMN |
JP2004110094A (ja) | 2002-09-13 | 2004-04-08 | Vodafone Kk | 移動無線端末装置 |
US7441026B2 (en) * | 2003-07-10 | 2008-10-21 | Sun Microsystems, Inc. | System and method for guarding against infinite loops from multi-point redirects in a multi-threaded environment |
US20050262253A1 (en) | 2004-04-16 | 2005-11-24 | Qiang Li | Method and apparatus for a loosely coupled, scalable distributed multimedia streaming system |
US7760720B2 (en) | 2004-11-09 | 2010-07-20 | Cisco Technology, Inc. | Translating native medium access control (MAC) addresses to hierarchical MAC addresses and their use |
JP4387962B2 (ja) * | 2005-02-18 | 2009-12-24 | 株式会社東芝 | コンテンツ再生装置、コンテンツ再生方法及びプログラム |
US7603696B2 (en) | 2005-06-10 | 2009-10-13 | Intel Corporation | Hybrid distributed firewall apparatus, systems, and methods |
US8850056B2 (en) | 2005-08-22 | 2014-09-30 | Oracle America, Inc. | Method and system for managing client-server affinity |
US8612569B2 (en) * | 2005-12-12 | 2013-12-17 | Ebay Inc. | Method and system for proxy tracking of third party interactions |
US7224642B1 (en) | 2006-01-26 | 2007-05-29 | Tran Bao Q | Wireless sensor data processing systems |
CN101207914B (zh) * | 2006-12-21 | 2010-09-22 | 华为技术有限公司 | 进行无线资源控制连接的方法、装置及系统 |
EP2250766B1 (en) * | 2008-03-07 | 2019-01-30 | Citrix Systems, Inc. | Systems and methods for content injection |
US8217803B2 (en) | 2008-04-22 | 2012-07-10 | Srd Innovations Inc. | Wireless data acquisition network and operating methods |
EP2301275B1 (en) * | 2008-05-12 | 2018-07-11 | Telecom Italia S.p.A. | Common management of communication resources in a telecommunications network having distinct communication resources pools |
WO2010068465A2 (en) | 2008-11-25 | 2010-06-17 | Citrix Systems. Inc. | Systems and methods for maintaining persistence by a backup virtual server |
US9800690B1 (en) * | 2009-06-26 | 2017-10-24 | Tata Communications (America) Inc. | Content-based redirection |
US8694643B2 (en) | 2009-08-24 | 2014-04-08 | Nec Corporation | Contents delivery system, a contents delivery method, and a program for contents delivery |
US8862699B2 (en) * | 2009-12-14 | 2014-10-14 | Microsoft Corporation | Reputation based redirection service |
US8856281B2 (en) | 2010-03-22 | 2014-10-07 | At&T Intellectual Property I, L.P. | Internet protocol version 6 content routing |
US8745266B2 (en) | 2011-06-30 | 2014-06-03 | Citrix Systems, Inc. | Transparent layer 2 redirection of request to single sign in service based on applying policy to content of request |
CA2783145C (en) | 2011-07-11 | 2022-05-03 | Srd Innovations Inc. | Wireless mesh network and method for remote seismic recording |
KR101311524B1 (ko) | 2011-10-27 | 2013-09-25 | 주식회사 케이티 | 이종 망의 경계 주변에 위치하는 단말의 망 천이 방법 |
WO2013138528A1 (en) | 2012-03-14 | 2013-09-19 | Visa International Service Association | Point-of-transaction account feature redirection apparatuses, methods and systems |
CN102685215B (zh) * | 2012-04-18 | 2015-12-16 | 华为技术有限公司 | 移动终端上网监控的方法、装置和系统 |
US9847917B2 (en) * | 2012-12-13 | 2017-12-19 | Level 3 Communications, Llc | Devices and methods supporting content delivery with adaptation services with feedback |
US9973580B2 (en) * | 2014-05-07 | 2018-05-15 | Hughes Network Systems, Llc | State-based intercept of interactive communications network connections for provision of targeted, status-based messaging |
-
2014
- 2014-08-22 CN CN201410418834.4A patent/CN105450694B/zh active Active
-
2015
- 2015-08-11 WO PCT/CN2015/086614 patent/WO2016026400A1/zh active Application Filing
- 2015-08-11 EP EP15834055.4A patent/EP3185512B8/en active Active
- 2015-08-11 PL PL15834055T patent/PL3185512T3/pl unknown
- 2015-08-11 KR KR1020177004878A patent/KR101970901B1/ko active IP Right Grant
- 2015-08-11 SG SG11201700630RA patent/SG11201700630RA/en unknown
- 2015-08-11 JP JP2017510569A patent/JP6514322B2/ja active Active
- 2015-08-11 US US15/505,418 patent/US10673972B2/en active Active
- 2015-08-11 ES ES15834055T patent/ES2829832T3/es active Active
-
2016
- 2016-08-24 HK HK16110071.3A patent/HK1222056A1/zh unknown
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102098594A (zh) * | 2011-02-25 | 2011-06-15 | 清华大学 | 一种基于信息扩散光网络的连接建立信令冲突避免方法 |
CN102291390A (zh) * | 2011-07-14 | 2011-12-21 | 南京邮电大学 | 一种基于云计算平台的防御拒绝服务攻击的方法 |
CN102870470A (zh) * | 2012-06-27 | 2013-01-09 | 华为技术有限公司 | 重定向处理方法、设备及系统 |
CN103019960A (zh) * | 2012-12-03 | 2013-04-03 | 华为技术有限公司 | 分布式缓存方法及系统 |
Non-Patent Citations (1)
Title |
---|
See also references of EP3185512A4 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112925628A (zh) * | 2021-03-29 | 2021-06-08 | 建信金融科技有限责任公司 | 一种服务管理方法和装置 |
Also Published As
Publication number | Publication date |
---|---|
CN105450694B (zh) | 2019-06-21 |
EP3185512A4 (en) | 2018-02-21 |
ES2829832T3 (es) | 2021-06-02 |
US20170272531A1 (en) | 2017-09-21 |
SG11201700630RA (en) | 2017-03-30 |
CN105450694A (zh) | 2016-03-30 |
JP6514322B2 (ja) | 2019-05-15 |
EP3185512B8 (en) | 2021-03-10 |
KR20170034416A (ko) | 2017-03-28 |
JP2017533492A (ja) | 2017-11-09 |
US10673972B2 (en) | 2020-06-02 |
HK1222056A1 (zh) | 2017-06-16 |
PL3185512T3 (pl) | 2021-05-04 |
EP3185512A1 (en) | 2017-06-28 |
EP3185512B1 (en) | 2020-10-07 |
KR101970901B1 (ko) | 2019-04-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2016026400A1 (zh) | 一种处理连续重定向的方法和装置 | |
EP3243140B1 (en) | Html streaming | |
US8862777B2 (en) | Systems, apparatus, and methods for mobile device detection | |
US10798199B2 (en) | Network traffic accelerator | |
US20140344437A1 (en) | Method and system for implementing a transparent proxy of an ios system | |
CN109450766B (zh) | 一种工作区级vpn的访问处理方法及装置 | |
US11797653B2 (en) | Hash-based dynamic restriction of content on information resources | |
US11165868B2 (en) | Systems and methods for achieving session stickiness for stateful cloud services with non-sticky load balancers | |
EP3119044B1 (en) | Page insertion method and device | |
KR102196403B1 (ko) | 재지향 감소 | |
CN105554740A (zh) | 一种识别无线热点的方法、装置及设备 | |
US10992702B2 (en) | Detecting malware on SPDY connections | |
US11838316B1 (en) | Providing application security using causal graph | |
US20200402115A1 (en) | Serving an Online Advertisement Asynchronously | |
WO2018125265A1 (en) | Deploying countermeasures to hash-based dynamic restriction of content elements on information resources | |
KR102157477B1 (ko) | 컨텐츠 전송 서비스를 위한 트래픽 제어 방법 및 이를 구현한 프로그램을 기록한 컴퓨터 판독 가능한 기록 매체 | |
JP2015122548A (ja) | Sipサーバ |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15834055 Country of ref document: EP Kind code of ref document: A1 |
|
REEP | Request for entry into the european phase |
Ref document number: 2015834055 Country of ref document: EP |
|
ENP | Entry into the national phase |
Ref document number: 2017510569 Country of ref document: JP Kind code of ref document: A Ref document number: 20177004878 Country of ref document: KR Kind code of ref document: A |
|
WWE | Wipo information: entry into national phase |
Ref document number: 15505418 Country of ref document: US |
|
NENP | Non-entry into the national phase |
Ref country code: DE |