Skip to content

Instantly share code, notes, and snippets.

@santhoshtr
Created February 6, 2015 03:16
Show Gist options
  • Save santhoshtr/dc8dc71055d2af50ccd3 to your computer and use it in GitHub Desktop.
Save santhoshtr/dc8dc71055d2af50ccd3 to your computer and use it in GitHub Desktop.
proxy
from twisted.web import proxy, http
from twisted.internet import reactor
from twisted.python import log
import sys
log.startLogging(sys.stdout)
class ProxyFactory(http.HTTPFactory):
protocol = proxy.Proxy
reactor.listenTCP(9898, ProxyFactory())
reactor.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment