1. Frontend validation only

MVC · rules in HTML attributes · browser checks before submit

Tip: disable HTML5/JS or use DevTools — then this form can post anything.

Bypass the UI with curl

You can bypass the browser UI. The request below sends intentionally invalid data (name too short, not an email, age 5).

Expected: SUCCEEDS — "Success" page. No backend validation, so invalid data is accepted.

Windows (cmd / PowerShell)
curl -k -L -sS -c cookies.txt -b cookies.txt -w "\n\nHTTP %{http_code}\n" -H "Content-Type: application/x-www-form-urlencoded" -d "name=x&email=not-an-email&age=5" "https://app16i872272.luna.fhict.nl/Demo/Frontend"
Linux / macOS
curl -k -L -sS -c cookies.txt -b cookies.txt -w '\n\nHTTP %{http_code}\n' -H 'Content-Type: application/x-www-form-urlencoded' -d 'name=x&email=not-an-email&age=5' 'https://app16i872272.luna.fhict.nl/Demo/Frontend'

-k ignores the local dev certificate. No -X POST (breaks redirects). -c/-b keeps cookies across redirects. Antiforgery is disabled for these demos.

Filter the HTML (use /C: for an exact phrase — a plain space means OR in findstr): … | findstr /i /C:"Registration received" or … | findstr /i /C:"field-validation-error"