IP Library Granted Patent US 10,673,972
Granted Patent B2
US 10,673,972 · App. 15/505,418 · Granted Jun 2, 2020

Method and device for processing continuous redirection

Inventor: Yan Zhang (Hangzhou, CN)
Assignee: Alibaba Group Holding Limited
H04L67/2814H04L29/08H04L69/40
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,673,972
App. No.
15/505,418
Granted
Jun 2, 2020
Kind
B2
Abstract

Disclosed are a method and device for processing continuous redirection. The method comprises: when a service request that redirection processing needs to be performed is received, the number of redirections corresponding to the service request is determined and it is judged whether the number of redirections reaches a pre-set threshold value; if so, the redirection of the service request is interrupted, and after the redirection of the service request is interrupted, the service request is resumed redirecting to a destination address; and if not, the service request is redirected to the destination address. In the embodiments of the present application, a redirection processing device can avoid error processing (e.g. 404 error) induced by the case where the number of 302 redirections exceeds the number of times restricted by a browser and thus avoid service interruption and service failure, thereby improving the service experience and the user experience.

Claims (40)

1. A method for processing continuous redirection, comprising:

receiving a service request from a client, wherein the service request requires a redirection process comprising one or more redirections leading to a destination address;

counting a number of redirections that have been performed in response to the service request, wherein the counting comprises:

storing, in a memory, a correspondence relationship between a service ID corresponding to the service request and the number of redirections, wherein an initial value of the number of redirections is 0; and

for each redirection, adding 1 to the number of redirections corresponding to the service ID in the memory;

obtaining a pre-set threshold value associated with the service ID, wherein the obtaining comprises:

if error processing occurs when the number of redirections stored in the memory is smaller than the pre-set threshold value, adjusting the pre-set threshold value to the number of redirections corresponding to the service ID when the error processing occurs;

determining that the counted number of redirections is equal to or greater than the pre-set threshold value;

interrupting, based on the determining, the redirection process by sending an intermediate page to the client;

when the redirection process is interrupted, resetting the number of redirections corresponding to the service ID in the memory; and

resuming the redirection process by performing one or more remaining redirections, wherein the resuming comprises refreshing the intermediate page.

2. The method of claim 1 , wherein:

the intermediate page comprises Hyper Text Markup Language (HTML) elements; and

a head of the intermediate page comprises a pre-set instruction for resuming the redirection process.

3. The method of claim 1 , wherein the interrupting comprises:

calling a method configured in a continuous redirection method pool; and

interrupting the redirection process based on the called method.

4. The method of claim 1 , wherein the receiving comprises:

intercepting a plurality of service requests; and

selecting, from the intercepted service requests, a service request for which redirection processing needs to be performed.

5. A system comprising a processor and a non-transitory computer-readable storage medium storing instructions executable by the processor to cause the system to perform operations comprising:

receiving a service request from a client, wherein the service request requires a redirection process comprising one or more redirections leading to a destination address;

counting a number of redirections that have been performed in response to the service request, wherein the counting comprises:

storing, in a memory, a correspondence relationship between a service ID corresponding to the service request and the number of redirections, wherein an initial value of the number of redirections is 0; and

for each redirection, adding 1 to the number of redirections corresponding to the service ID in the memory;

obtaining a pre-set threshold value associated with the service ID, wherein the obtaining comprises:

if error processing occurs when the number of redirections stored in the memory is smaller than the pre-set threshold value, adjusting the pre-set threshold value to the number of redirections corresponding to the service ID when the error processing occurs;

determining that the counted number of redirections is equal to or greater than a pre-set threshold value;

interrupting, based on the determining, the redirection process by sending an intermediate page to the client;

when the redirection process is interrupted, resetting the number of redirections corresponding to the service ID in the memory; and

resuming the redirection process by performing one or more remaining redirections, wherein the resuming comprises refreshing the intermediate page.

6. The system of claim 5 , wherein:

the intermediate page comprises Hyper Text Markup Language (HTML) elements; and

a head of the intermediate page comprises a pre-set instruction for resuming the redirection process.

7. The system of claim 5 , wherein the interrupting comprises:

calling a method configured in a continuous redirection method pool; and

interrupting the redirection process based on the called method.

8. The system of claim 5 , wherein the receiving comprises:

intercepting a plurality of service requests; and

selecting, from the intercepted service requests, a service request for which redirection processing needs to be performed.

Assignments (4)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 12, 2024
From: ADVANCED NEW TECHNOLOGIES CO., LTD.
To: ADVANCED NOVA TECHNOLOGIES (SINGAPORE) HOLDING PTE. LTD.
Reel/Frame 066733/0793 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 16, 2020
From: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
To: ADVANCED NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053796/0281 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 3, 2020
From: ALIBABA GROUP HOLDING LIMITED
To: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053702/0392 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 28, 2017
From: ZHANG, YAN
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 043019/0055 →
Priority Claims (1)
CN 2014 1 0418834 · Aug 22, 2014 · national
Continuity (1)
Related Publication 20170272531A1 · Sep 21, 2017