Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

http-echo-server

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-echo-server

A simple HTTP echo server

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
493
-16.01%
Maintainers
1
Weekly downloads
 
Created
Source

http-echo-server

Will accept any TCP connection and echo back a HTTP response with the entire content of the incoming TCP connection.

The server makes no attempt to understand the incoming HTTP request hence it doesn't know when the request is completed and therefore just terminates the TCP connection 2 seconds after the first data packet.

Installation

To setup a simple echo-server on Heroku just click this button:

Deploy

Note that the Heroku routing stack will proxy the incoming request and add custom HTTP headers.

Alternatively, to install locally just run:

npm install http-echo-server -g

Example usage

Just curl the URL of the app:

curl http://<heroku-app-name>.herokuapp.com

Alternatively - if installed locally - you can start the server using the command http-echo-server, take note of the port it starts on and then curl it:

curl http://localhost:<port>

License

MIT

Keywords

http

FAQs

Package last updated on 02 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts