Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //node v10.16.0
- const axios = require('axios');
- axios.post('http://tomcatdev.tv.kvant-telecom.ru:8080/sentinel/auth', {
- login: 'warhammer',
- password: '4000'
- })
- .then(function(response) {
- console.log(response);
- })
- .catch(function(error) {
- //console.log(error);
- console.log("==========================");
- console.log(error.response.status);
- console.log(error.response.data);
- });
Advertisement
Add Comment
Please, Sign In to add comment