somnathwy
somnathwy
var myBuffer = new Buffer('myString', encoding); I want to post myBuffer (raw Binary data to server). Can you please provide me sample code?
I'm receiving "Failure when receiving data from the peer" while posting 9 mb data. I tried setting curl.setopt('CONNECTTIMEOUT_MS', 900000); Nothing worked.
How to read response header from curl ? Can you please share an example. curl.on('end', function() { p('code: ' + curl.getinfo('RESPONSE_HTTPHEADER)); p('done.') curl.close(); });