NetCoreServer
NetCoreServer copied to clipboard
HttpRequest.Body does not contain form submission data
Given an HTML form similar to the following:
<form method="post" action="/page">
<label>Label #1: </label>
<input type="text" />
<input type="submit" value="Submit">
</form>
When the submit button is clicked, I have it set up to call HttpSession.OnReceivedRequest. But when that method executes, HttpRequest.Body is empty. According to https://www.w3schools.com/tags/att_form_method.asp, for method="post", the form data should be inside the request body