I'm using NodeJS to build a sample page just for some learning.
I'm trying to send a GET request to a file in the project's directory (using request module of node). The callback is just returning me an error and I can't figure out why this is happening.
Here's the code:
console.log("Test Data Sent!");
console.log("error occured! "+err);
A GET is a http request made to a web server. You can't GET a local file directly.
A local file can be read with