A simple terminal based server that accepts input from an external connection and outputs given text input.
Domain: ec2-18-220-252-158.us-east-2.compute.amazonaws.com
Port: 5000
nc ec2-18-220-252-158.us-east-2.compute.amazonaws.com 5000
Enter any text and press enter.
some text
=> some text
A basic server that processes simple http requests. Limited support for media data and DELETE, PUT and PATCH requests.
Domain: ec2-18-220-252-158.us-east-2.compute.amazonaws.com
Port: 2500
- GET /not_found
- GET /simple_get
- GET /cool_gif
- GET /get_with_body
- GET /redirect
- HEAD /simple_get
- HEAD /get_with_body
- POST /echo_body
- OPTIONS /method_options
- OPTIONS /method_options2
** OPTIONS for any defined route
- Get requests can be accessed via any browser
- Compatible with server tools such as cURL and Postman
cURL Example:
curl -X OPTIONS ec2-18-220-252-158.us-east-2.compute.amazonaws.com:2500/method_options
* Trying 18.220.252.158...
* TCP_NODELAY set
* Connected to ec2-18-220-252-158.us-east-2.compute.amazonaws.com (18.220.252.158) port 2500 (#0)
> GET /redirect HTTP/1.1
> Host: ec2-18-220-252-158.us-east-2.compute.amazonaws.com:2500
> User-Agent: curl/7.64.1
> Accept: */*
>
< HTTP/1.1 301
< Location: http://ec2-18-220-252-158.us-east-2.compute.amazonaws.com:2500/simple_get
* no chunk, no close, no size. Assume close to signal end
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.