I'm not sure that I got your question right. You know that there are packages but you do not want to use them?
anyway, here there is a similar question that you might find useful (if I got your problem right )
node.js http set request parameters
to send the request parameters you can choose to put them in your path by doing:
const options = {
hostname: "localhost",
port: 3000,
method: "POST",
path:"/add?yourParameter=yourParameterValue",
headers: {}
}
but it is hard coded, so it is not a good way to do it.. You can also think of string literal, here the documentation
https://developers.google.com/web/updates/2015/01/ES6-Template-Strings