mitmproxy/pathod/examples/libpathod_pathoc.py
2016-02-16 21:11:19 +01:00

8 lines
152 B
Python

#!/usr/bin/env python
from pathod import pathoc
p = pathoc.Pathoc(("google.com", 80))
p.connect()
print p.request("get:/")
print p.request("get:/foo")