response = http.post(
‘http://localhost:1080/cgi-bin/login.pl’,
{
JSFormSubmit: ‘off’,
‘login.x’: ‘59’,
‘login.y’: ‘7’,
password: ‘bean’,
userSession: ‘C_SessionID’, // Correlated value from previous request
username: ‘jojo’,
},
{
headers: {
origin: 'http://localhost:1080',
'content-type': 'application/x-www-form-urlencoded',
accept:
},
}
)
sleep(7.5)