mitmproxy/examples/libpathod_pathoc.py

8 lines
155 B
Python
Raw Normal View History

2012-10-04 21:46:09 +00:00
#!/usr/bin/env python
from libpathod import pathoc
p = pathoc.Pathoc(("google.com", 80))
2012-10-04 21:46:09 +00:00
p.connect()
print p.request("get:/")
2012-11-02 01:22:54 +00:00
print p.request("get:/foo")