A Node.js proxy server that captures and logs all HTTP/HTTPS requests and responses.
- Captures all HTTP and HTTPS traffic
- Logs requests and responses with timestamps
- Generates SSL certificates on-the-fly for HTTPS interception
- Works with any client that supports proxy configuration
-
Install dependencies:
yarn -
Start the proxy server:
yarn start -
Install the CA certificate: The certificate will be generated at
./certs/ca.crt. You need to install this certificate in your system's trusted root certificate store. -
Configure your system proxy: Set your system's proxy settings to use
127.0.0.1:3000for both HTTP and HTTPS.
All captured requests and responses are stored in the logs directory with timestamps and details.
index.js: Main entry pointcertificateManager.js: Handles SSL certificate generationlogger.js: Manages request and response logginghttpProxy.js: Handles HTTP proxyinghttpsProxy.js: Handles HTTPS proxying