Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'webrick/httpproxy'
- require 'uri'
- s = WEBrick::HTTPProxyServer.new(
- :Port => 8080,
- :ProxyContentHandler => Proc.new{|req,res|
- puts "-"*70
- puts res.body.class unless res.body == nil
- puts "-"*70
- }
- )
- trap("INT"){ s.shutdown }
- s.start
Add Comment
Please, Sign In to add comment