Skip to content

Instantly share code, notes, and snippets.

@kmayer
Created March 8, 2017 19:08
Show Gist options
  • Select an option

  • Save kmayer/8bd38102ce183a8f85131d0cceb31757 to your computer and use it in GitHub Desktop.

Select an option

Save kmayer/8bd38102ce183a8f85131d0cceb31757 to your computer and use it in GitHub Desktop.
Instant web proxy server
ruby -r webrick/httpproxy -e 's = WEBrick::HTTPProxyServer.new(:Port => 9999, :RequestCallback => Proc.new{|req,res| puts req.request_line, req.raw_header}); trap("INT"){s.shutdown}; s.start'
@kmayer
Copy link
Copy Markdown
Author

kmayer commented Mar 8, 2017

make public

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment