Expect Header Explained
What the HTTP Expect header does and when it's used.
Published October 17, 2026
Expect: 100-continue asks the server to confirm it will accept the request before the client sends a large body.
How it works
The server answers 100 Continue or rejects early (e.g. 401, 413).
The Expect header is part of the HTTP message and is case-insensitive in name.
In a real exchange
curl -i https://example.com/
Expect: 100-continue
Practical examples
The header
Expect: 100-continueSet or use it in code
curl -H 'Expect:' -T big.bin https://example.com/uploadInspect it
curl -sI https://example.com | grep -i 'expect'Common mistakes
- Proxies that mishandle it (417 errors)
- Waiting forever for 100 on servers that ignore it
- Sending small bodies with it
Key takeaways
- Expect: Expect: 100-continue asks the server to confirm it will accept the request before the client sends a large body.
- Check it in browser DevTools → Network.
- Test with curl -I before deploying.
FAQ
Why disable it?
Some servers and proxies do not support it and respond with 417.
Is Expect case sensitive?
Header names are case-insensitive; values may not be.