NetCoreServer icon indicating copy to clipboard operation
NetCoreServer copied to clipboard

HttpRequest.Body does not contain form submission data

Open derekantrican opened this issue 4 years ago • 0 comments

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

derekantrican avatar Jul 01 '21 21:07 derekantrican