(doc) http.request() improved code example

I am writing some npm packages and I'm trying to make than as dependency-less as possible and i stucked trying to send data over an POST http request, when I googled it, i realized that there are so many people searching for that, so I made this little improvement in the http.request() documentation example