mistakster / throttle-proxy

Throttle HTTP/HTTPS/SOCKS proxy server
121 stars 24 forks source link

Add the ability to specify a custom port to which requests will be redirected. #7

Closed A closed 10 years ago

A commented 10 years ago

For example, I have expressjs app that listen 3000 port instead 80.

mistakster commented 10 years ago

Actually, there is no issue with port numbers other than 80. Try to fetch page using curl

curl "http://127.0.0.1:3000"

HTML page appears blazing fast.

Now run throttle-proxy with very low speed limit: throttle-proxy -s 1000 and make same request.

curl -x 127.0.0.1:3128 "http://127.0.0.1:3000"

As you can see, the terminal window updates very slowly.

If you fetch page using browser then please check your network setting. It seems that proxy is misconfigured.

A commented 10 years ago

Mea culpa, I tried to write something like 0.0.0.0:3128 in my web-browser. And I did not understand that it is a real proxy. Now established it as a proxy for the browser and it worked.