Unable to post data via arduino mkr wifi1010 to nodejs server

This is my first post here and I am currently doing a project for school in which I am to post http post via Arduino MKR 1010. I currently have the NodeJS server running on a localhost that is also connected to the same Wi-Fi as my Arduino. The Arduino is able to connect successfully but I cannot think of a way program the Arduino to connect to the server. Any help is appreciated!

see the WebClient example of the WiFiNINA library