Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var options = { method: 'POST',
- url: 'https://www.fysiken.nu/umbraco/Surface/User/UserLogin',
- qs: { locale: 'sv-SE', referrer: '2213' },
- headers:
- { 'Postman-Token': '43e4729b-3fdd-4c4c-a345-5b1cc238bf45',
- 'Cache-Control': 'no-cache',
- 'Content-Type': 'application/x-www-form-urlencoded',
- 'content-type': 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' },
- formData:
- { __RequestVerificationToken: 'eXzYrfba-KY0Qn5OGLNEpcrsN_ixZMylWMCawGMZTHApf3xpe1tsamHhLdjKRWXGmtVfsw62Tt37qfosziCJw4iRfQc70aQ9hovgtzGzDus1',
- Username: 'pthoresson@gmail.com',
- Password: '19920820' } };
- 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