sendHTTPPostRequest to JSP getParameter return NULL

Hello,
i’m trying to send a String to JSP, by using sendHTTPPostRequest and Tomcat.

like this:
var String test = “testone”
sendHttpPostRequest(“http://192.168.178.26:8181/Archiv/jsp/Archiv.jsp","Content-type:
text/plain”,test)

and JSP:
String
posttest = request.getParameter(“test”);
System.out.println("posttest: "+posttest);

But I only get NULL back.

The most oft the other methode works, like show URL or Content-type.

About each tip, I would be happy

Thanks

I’m not sure if you are trying to post form data, but there is no parameter in the request named “test”. There’s only a payload/content string with the value “testone”. To get that content in the JSP, see the following link for some guidance.

it works

thanks

Raimund