Range Requests (206 Partial) Playground

Ask for a piece of a file with Range and resume a broken download: how many bytes come, what does a gudang without Range or a request past the end get back…

Why it matters

Range is behind downloads that resume, videos you can seek to any minute, and PDFs loaded a page at a time. But a server may ignore it, both its ends count, a Range past the end makes a 416, and a file replaced halfway quietly breaks a download unless you use If-Range and check the status.

The key idea

A 206 joins on, a 200 replaces

Common mistakes

Try it in this playground