// Topic
APIs
7 notes in the notebook.
// article
// article · esim · telecom
What happens technically when you buy an eSIM?
Purchase is not connectivity. Several systems have to agree.
4 min read
// 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 · 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 · 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