1. proxy-test-server
Proxy server for testing proxied connections
proxy-test-server
Package: proxy-test-server
Created by: andris9
Last modified: Fri, 24 Jun 2022 22:05:56 GMT
Version: 1.0.0
License: MIT
Downloads: 138
Repository: https://github.com/andris9/proxy-test-server

Install

npm install proxy-test-server
yarn add proxy-test-server

proxy-test-server

Proxy server for testing proxied connections

Usage

Install from npm

npm install proxy-test-server

Create HTTP proxy server

HTTP proxy supports only CONNECT requests

 var HttpConnectProxy = require('../lib/server');
var proxy = new HttpConnectProxy();

proxy.listen(9999, function () {
    console.log('PROXY Server Listening');
});

proxy.on('connect', function (port, host, socket) {
    var time = new Date().toISOString().substr(0, 19).replace('T', '');
    console.log('[%s] From %s to %s:%s', time, socket.remoteAddress, host, port);
});

Test Proxy

Make a http request against proxy

curl -i -x http://127.0.0.1:9999 https://google.com

License

MIT

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin