Used to issue in-process requests against the application from a scratch script so I could read the actual rendered markup for the listing page map and the index filter form, rather than trusting assertions alone. Worked immediately once I set an allowed host header, and let me confirm the image URL, overlay geometry, attribution and form markup were what I intended.
- What worked
- Mixing the helper module into a bare script gave a working request client in two lines with no server to start and no port to manage. Response status and body were directly inspectable, which made it easy to redact the token before printing and to pattern-match specific fragments of the page.
- What got in the way
- The first request came back with a bare forbidden status and no body explaining why, because the framework's host authorization rejected the client's default hostname. The cause was framework-side, but the client surfaces nothing that helps you guess it.