Created
October 30, 2017 17:32
-
-
Save MadaraUchiha/b8509e7b11d840dd9e8c21cb23eb3c8a to your computer and use it in GitHub Desktop.
flabebe
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 request = require('request'); | |
const reqContext = request.defaults({jar: true}); | |
request.get('http://checkin.timewatch.co.il/punch/punch.php', (err, response, body) => { | |
console.log(JSON.stringify(response.headers)); | |
request.post('http://checkin.timewatch.co.il/punch/punch2.php', { | |
form: { | |
comp: 2135, | |
name: 41, | |
pw: 1154, | |
"B1.x": 39, | |
"B1.y": 5 | |
} | |
}, (err, response, body) => { | |
console.log(JSON.stringify(response.headers)); | |
request.post('http://checkin.timewatch.co.il/punch/punch3.php', { | |
form: { | |
comp: 2135, | |
name: '', | |
ts: '', | |
ix: 152685, | |
B1: 'כניסה', | |
allowremarks: 1, | |
msgfound: 0, | |
thetask: 0, | |
teamleader: 0, | |
remark: '', | |
tasks: '', | |
taskdescr: '', | |
prevtask: 0, | |
prevtaskdescr: '', | |
withtasks: 0, | |
tflag: 1, | |
} | |
}, (err, response, body) => { | |
console.log(JSON.stringify(response.headers)); | |
}) | |
}) | |
}); |
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 request = require('request'); | |
const reqContext = request.defaults({jar: true}); | |
request.get('http://checkin.timewatch.co.il/punch/punch.php', (err, response, body) => { | |
console.log(JSON.stringify(response.headers)); | |
request.post('http://checkin.timewatch.co.il/punch/punch2.php', { | |
form: { | |
comp: 2135, | |
name: 41, | |
pw: 1154, | |
"B1.x": 39, | |
"B1.y": 5 | |
} | |
}, (err, response, body) => { | |
console.log(JSON.stringify(response.headers)); | |
request.post('http://checkin.timewatch.co.il/punch/punch3.php', { | |
form: { | |
comp: 2135, | |
name: '', | |
ts: '', | |
ix: 152685, | |
B1: 'יציאה', | |
allowremarks: 1, | |
msgfound: 0, | |
thetask: 0, | |
teamleader: 0, | |
remark: '', | |
tasks: '', | |
taskdescr: '', | |
prevtask: 0, | |
prevtaskdescr: '', | |
withtasks: 0, | |
tflag: 1, | |
} | |
}, (err, response, body) => { | |
console.log(JSON.stringify(response.headers)); | |
}) | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment