Untitled

mail@pastecode.io avatar
unknown
javascript
a year ago
545 B
3
Indexable
Never
    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);
});