Untitled

 avatar
unknown
javascript
2 years ago
545 B
10
Indexable
    var abc = `<xml version = "1.0" encoding = "utf-8">
<request>
<security>
<login value = "harryscam" />
<password value = "Harryscam1" />
</security>
</request>
</xml>`

    const test = request.post({
        url: "http://my.sms-torussia.ru/xml/balance.php",
        method: "POST",
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        },
        body: abc
},
function(error, response, body){
    console.log(response.statusCode);
    console.log(body);
    console.log(error);
});
Editor is loading...