From 2bdb5d15b935f345e769bacafe60f0f594929f31 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Fri, 5 Oct 2012 10:46:09 +1300 Subject: [PATCH] Add a simple libpathod.pathoc example --- examples/pathoc.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 examples/pathoc.py diff --git a/examples/pathoc.py b/examples/pathoc.py new file mode 100755 index 000000000..4c3fae52d --- /dev/null +++ b/examples/pathoc.py @@ -0,0 +1,6 @@ +#!/usr/bin/env python +from libpathod import pathoc + +p = pathoc.Pathoc("google.com", 80) +p.connect() +print p.request("get:/")