aspnet-core-form-urlencoded.http
@baseUrl = https://localhost:7001
### Submit an HTML-style form to ASP.NET Core
POST {{baseUrl}}/newsletter/subscribe
Accept: application/json
Content-Type: application/x-www-form-urlencoded
email=developer%40example.com&source=api-client
Variables to replace
- baseUrl
- Your ASP.NET Core HTTPS launch URL.
Expected response
A successful form handler commonly returns 200 OK, 201 Created, or a redirect. Invalid form fields often return 400 Bad Request with validation details.
Related examples and guides
Learn the full syntax in the .http file format guide, manage secrets with variables and environments, or see how to run .http files on Windows.
Launch Summer Sale
Run this request without leaving Windows.
Karve opens .http files as a native workspace: edit the plain text, press Run, inspect the response, and keep the file in Git.
15-day free trial · No account · No subscription · No metered requests
25% off until Sep 1