Forum: Ruby Building local proxy that pausing requests

0528ea36a904820d78224f5e636066e7?d=identicon&s=25 Soichi Ishida (soujiro0725)
on 2016-09-05 10:53
It's a general question about ruby development.

I am wondering if it's possible to develop a local proxy that pauses
requests sent from local clients until I say yes.

For example,

1. an user tries to access http://www.google.com from browser.
2. a locally activated proxy server captures the request and stops
there.
3. If I say yes, the sent request will be forwarded to www.google.com
server
    if I say no, the sent requests are to be dropped, www.google.com
server received no request.

I know that using WEBrick::HTTPProxyServer will help create a simple
proxy.
My question is how to develop a proxy that pools incoming requests until
forwarded at will, if possible.

I appreciate you help.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.