Created
December 1, 2015 00:37
-
-
Save yamikuronue/9c77a3f7b3fce652e293 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const req = http.request({ | |
host: 'localhost', | |
port: '8080', | |
path: '/api/game/1111', | |
method: 'PUT' | |
}); | |
req.write(JSON.stringify(formData) + "\n"); | |
req.end(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i think it's missing headers...
http.request is not very smart....