Forum: Ruby Building local proxy that pausing requests

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
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.
This topic is locked and can not be replied to.