When developing client side javascript applications, the developer network panel is invaluable for debugging network issues:
How does a developer creating a NodeJS application monitor the network traffic from the nodejs application to a http/https server? For example how to debug the following network traffic?
var http = require('http');
var req = http.request ...
req.write ...
req.send()
My code is making a call to a third party https server, so I am unable to use wireshark or similar packet sniffing tools.
For more information, the problem I am trying to investigate is here.
EDIT:
Here are similar questions asking how to do the same thing in other languages:
require('http');
with something likerequire('./http-log');
, where the http-log file is a simple wrapper around the existing http module's exports's methods that logs such details by binding extra events as it returns the original. – Admirablerequest
or an html page with its dependent resources? – Danuloffrequire('https')
did not solve your issue? Please specify exactly what is your problem. – Danuloff