CS FundamentalsHardGATE CS · product-company placement
A download of a 10,000,000-byte file over HTTP broke after the first 4,000,000 bytes (bytes 0 to 3,999,999) arrived. To resume, which request header does the client send, and what response does a supporting server give?
- A. Range: bytes=4000000- ; 206 with Content-Range: bytes 4000000-9999999/10000000
- B. Range: bytes=4000001- ; 206 with Content-Range: bytes 4000001-10000000/10000000
- C. Range: bytes=4000000- ; 200 with Content-Range: bytes 4000000-10000000/10000000
- D. Range: bytes=3999999- ; 206 with Content-Range: bytes 3999999-9999999/10000000
Correct answer: A. Range: bytes=4000000- ; 206 with Content-Range: bytes 4000000-9999999/10000000
Byte ranges are zero-based and inclusive, so the next needed byte is 4,000,000 and the last is 9,999,999. A partial response uses 206 Partial Content; 200 would mean the whole body is sent.
More Computer Networks questions
- In an SMTP session between two mail servers, in which order are these commands sent? P. DATA Q. RCPT TO R. EHLO S. MAIL FROM T. QUIT
- A system identifies records by a 64-bit hash. Roughly how many random records must be hashed before the chance of at least one collision…
- Alice and Bob run plain Diffie–Hellman with no authentication of the exchanged values. Mallory sits on the path and can modify messages…
- Host H is set as 10.1.5.20 with mask 255.255.0.0, but the network is really split into /24 subnets joined by router R. H pings 10.1.200.7…
- Which SNMP message does an agent send without first being polled, and to which UDP port does it normally go?
- Frames take 1 ms to transmit and the one-way propagation delay is 10 ms (ACKs negligible, no errors). For Go-Back-N to reach at least 60%…