You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2023. It is now read-only.
consttoxy=require('toxy')consthttp=require('http');constproxy=toxy()construles=proxy.rulesconstpoisons=proxy.poisonsproxy.forward('http://httpbin.org')proxy.all('/*')proxy.listen(3000)console.log('Server listening on port:',3000)
...doesn't work.
When connecting with curl:
curl -vvv http://localhost:3000/
* Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 3000 (#0)
> GET / HTTP/1.1
> Host: localhost:3000
> User-Agent: curl/7.64.1
> Accept: */*
>
* Empty reply from server
* Connection #0 to host localhost left intact
curl: (52) Empty reply from server
* Closing connection 0