Deprecated: Use of "parent" in callables is deprecated in /var/www/html/forum/src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php on line 431
  • If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

EN [HELP] How do I login to the site using http.simpleRequest

Aloikn

Member
I need to login to the site using email and password, how can I do it?


http.simpleRequest({
method: 'POST',
url: 'https://panel.csduragi.com/doLogin',
headers: {
"Content-Type": "application/x-www-form-urlencoded"
},
}, function (error, response) {
if (error) {
engine.log("Error: " + error);
return;
}

if (response.statusCode != 200) {
engine.log("HTTP Error: " + response.status);
return;
}

// success!
engine.log("Response: " + response.data.toString());
});
 
Top