Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var request = require("request");
- var options = { method: 'POST',
- url: 'http://localhost:8080/api/login',
- form: { user: 'matsk', pass: 'R1nse&repeat' } };
- request(options, function (error, response, body) {
- if (error) throw new Error(error);
- console.log(body);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement