Answer the question
In order to leave comments, you need to log in
Strange characters in http response?
The meaning is this. I make a request to the site in this way.
var net = require('net');
var srv = net.createConnection(80, 'kartinki24.ru');
var buffers = [];
srv.on('data', function (data) {
buffers.push(data);
});
srv.on('end', function () {
var buf = Buffer.concat(buffers);
console.log(buf.toString());
});
srv.write('GET / HTTP/1.1\r\nHost: www.kartinki24.ru\r\nConnection: close\r\n\r\n');
Answer the question
In order to leave comments, you need to log in
read about Transfer-Encoding: chunked, you see it in the response headers
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question