I'm trying to send one HTTP request using JMeter, the problem is I don't know how to send the parameters.
I have my form in frontend in this way:
<form id="SampleForm" method="POST" action="MyHandler.ashx" enctype="multipart/form-data">
...
....
.....
</form>
I send this form to backend using: $("#SampleForm").submit()
And backend is built as following:
public class MyHandler: IHttpHandler, IRequiresSessionState {
public void ProcessRequest(HttpContext context) {
...
...
...
var PartOfRequest = context.Request.Form["myFormElement"];
...
...
...
}
}
The problem is in this part: context.Request.Form. I can send the HTTP Request to the handler, but it fails because it does not find the content of context.
Backend is waiting for one HTTP CONTEXT but I don“t know how I can sent a context from JMeter or if it is possible.