SUSTech-CS305-2023Fall icon indicating copy to clipboard operation
SUSTech-CS305-2023Fall copied to clipboard

About the request format in #Breakpoint Transmission test

Open Evan-Sukhoi opened this issue 1 year ago • 3 comments

In CS305.ipynb file, the #Breakpoint Transmission part gives the hearders as below:

headers={"Authorization": "Basic Y2xpZW50MToxMjM=",
         "Range": "0-1,1-2,2-3"}

But in the reference doc HTTP range requests - HTTP | MDN and the description given by you, the format should be:

Range: bytes=0-1023

Noticed that the bytes= is not given in the test file. So which one should be followed?

Evan-Sukhoi avatar Dec 27 '23 14:12 Evan-Sukhoi

Since bytes can be viewed as the default unit here, so it is just omitted in test. You'd better consider the default case.

Leosang-lx avatar Dec 27 '23 14:12 Leosang-lx

Since bytes can be viewed as the default unit here, so it is just omitted in test. You'd better consider the default case.

So besides bytes, is there any other type needed to be implemented?

Evan-Sukhoi avatar Dec 27 '23 15:12 Evan-Sukhoi

Since bytes can be viewed as the default unit here, so it is just omitted in test. You'd better consider the default case.

So besides bytes, is there any other type needed to be implemented?

Don't worry, actually you only need to consider type byte in this project

Leosang-lx avatar Dec 28 '23 13:12 Leosang-lx