// Topic
HTTP
8 notes in the notebook.
// article
// article · http · laravel
HTTP 421 and the Host header I should not have set
The endpoint was fine. The payload was fine. One header was not.
2 min read
// article · http · laravel
Why Postman and Laravel can send “the same request” and get different results
Headers, encodings, and the dangerous comfort of a green Postman screenshot.
2 min read
// problem
// problem · http · laravel
HTTP 421 Misdirected Request caused by an incorrect Host header
A 421 that looked like Nginx until the outbound Host header showed up.
1 min read · series · 2 hours
// problem · laravel · http
Laravel authentication error returning HTML instead of JSON
The API client expected JSON. Laravel thought it was talking to a browser.
1 min read · series · An embarrassing amount of time
// problem · laravel · http
API works in Postman but fails in Laravel
The request you think you are sending is not always the request that leaves the process.
1 min read · series · 2 hours
// til
// til · architecture · http
TIL: what idempotent actually means
Doing it twice should not change the outcome. Retries require that property or they become duplicate side effects.
1 min read
// til · http · apis
TIL: what an HTTP ETag is
An ETag is a fingerprint of a representation. If-None-Match asks “do I already have this?”
1 min read
// til · http · apis
TIL: Accept and Content-Type are different
Content-Type is what you are sending. Accept is what you are willing to receive. Mixing them is a classic API bug.
1 min read