Using the Node request
package, is there any way I can see the request body?
This is my actual request:
return request({
method: 'PUT',
preambleCRLF: true,
postambleCRLF: true,
url: url,
body: stream,
headers: {
'Transfer-Encoding': 'chunked',
'Content-Type': 'application/octet-stream',
}
}, function(err, res, body){
console.log('REQUEST RESULTS:', err, res.request._multipart.request, body);
});
With this I am able to see the response body but not the reqest.
This is not possible for chunked upload.