Interim response: the server has received the request headers and the client may send the body.
100 Continue answers a request that carried Expect: 100-continue. The client sends its headers first, waits for 100, and only then uploads a possibly large body, so a server that would reject the request (wrong credentials, body too large) can say so before megabytes are transferred. It is an interim response: a final status such as 200 or 413 always follows.
Expect: 100-continue automatically for larger POST or PUT bodies.curl -H "Expect:".| Header | Role |
|---|---|
Expect | Request header Expect: 100-continue that triggers it. |
HTTP/1.1 100 Continue
HTTP/1.1 201 Created
Location: /uploads/42
Content-Length: 0