mitmproxy/examples/pathod/libpathod_pathoc.py

8 lines
154 B
Python
Raw Normal View History

2012-10-04 21:46:09 +00:00
#!/usr/bin/env python
2016-02-16 19:59:33 +00:00
from pathod import pathoc
2012-10-04 21:46:09 +00:00
p = pathoc.Pathoc(("google.com", 80))
2012-10-04 21:46:09 +00:00
p.connect()
2016-04-14 05:34:28 +00:00
print(p.request("get:/"))
print(p.request("get:/foo"))