Guest User

Untitled

a guest
Feb 17th, 2019
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. var qs = require('qs');
  2. var user = { username: 'someUser', password: 'somePassword' };
  3. $http.post(`${API_URL}/login`, qs.stringify(user), {
  4. headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
  5. });
  6.  
  7. var user = { username: 'someUser', password: 'somePassword' };
  8. $http.post(`${API_URL}/login`, user);
  9.  
  10. Content-Type: application/json
Add Comment
Please, Sign In to add comment