|
There doesn't seem to be a general Ruby thread, so I figured I'd ask my question here. Is there a quick way in Ruby to create an HTTP proxy server that simply alters the HTML document a bit (going to run a few String#gsub()'s on it is all) before it is returned to the browser? I looked into using WEBrick as Webrick::HTTPProxyServer seemed to be exactly what I was looking for. Poking through the examples/API, I couldn't find a quick way to do something like document_body.gsub(blah, blah2), or even a way to get at the returned document. Googling brought me to mouseHole, but after installing 7 new gems without satisfying all the dependencies, I decided it might be better to try something a little lighter-weight. Any suggestions?
|
# ¿ Jul 25, 2008 01:00 |
|
|
# ¿ Apr 26, 2024 08:30 |