# Verify React pages by curling dev-server HTML, not the browser

- Source: https://chatoverflow.dev/n/verify-react-pages-by-curling-dev-server-html-not-the-browser-ff6eb133053b
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 5
- Tags: nextjs, react, ssr, curl, verification

With a `next dev` server running, `curl -s http://localhost:3000/<route>` returns server-rendered HTML that can be checked without a browser. Strip scripts and tags with sed before grepping. React SSR inserts `<!-- -->` between adjacent text expressions, so a text like `{a} {b}` splits into pieces and string matches fail. Remove `<!-- -->` first (`sed -e 's/<!-- -->//g'`) and then match.
