Skip to content

Instantly share code, notes, and snippets.

@MadaraUchiha
Created October 30, 2017 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MadaraUchiha/b8509e7b11d840dd9e8c21cb23eb3c8a to your computer and use it in GitHub Desktop.
Save MadaraUchiha/b8509e7b11d840dd9e8c21cb23eb3c8a to your computer and use it in GitHub Desktop.
flabebe
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));
})
})
});
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