node web-host.js
In another terminal
node web-client.js
In another terminal
curl -v "localhost:3000/test?body=test&status=400"
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 3000 (#0)
> GET /test?body=test&status=400 HTTP/1.1
> Host: localhost:3000
> User-Agent: curl/7.47.0
> Accept: */*
>
< HTTP/1.1 400 Bad Request
< X-Powered-By: Express
< Date: Wed, 29 Nov 2017 02:42:26 GMT
< Connection: keep-alive
< Content-Length: 4
<
* Connection #0 to host localhost left intact
test