CPC H04N 21/238 (2013.01) [H04L 67/02 (2013.01); H04N 21/2665 (2013.01); H04N 21/4126 (2013.01); H04N 21/43637 (2013.01); H04N 21/6131 (2013.01); H04N 21/8456 (2013.01)] | 18 Claims |
1. A hypertext transfer protocol (HTTP) request transmission method, the method comprising:
allocating, by an electronic device based on a byte range of to-be-requested data, a first byte range to a first content distribution network (CDN) server and a second byte range to a second CDN server, wherein there is an overlapping range between the first byte range and the second byte range, wherein the allocating the first byte range to the first CDN server and the second byte range to the second CDN server comprises:
allocating, by the electronic device based on the byte range of the to-be-requested data, a third byte range to the first CDN server and a fourth byte range to the second CDN server, wherein there is no overlapping range between the third byte range and the fourth byte range; and
adjusting, by the electronic device based on a predefined initial value, an end byte of requested data identified by the third byte range, to obtain the first byte range, and using the fourth byte range as the second byte range;
sending, by the electronic device, a first HTTP request to the first CDN server based on the first byte range; and
sending, by the electronic device, a second HTTP request to the second CDN server based on the second byte range,
wherein the first HTTP request is at least used to download first data from the first CDN server, the second HTTP request is at least used to download second data from the second CDN server, and the first data and the second data each are data whose byte range is the overlapping range and are used to check consistency between data downloaded from the first CDN server and data downloaded from the second CDN server.
|