summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-05-28 14:27:47 +0000
committeryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-05-28 14:27:47 +0000
commitf1c42c2190eafbf043dc16e51bb956e0dba0e2b8 (patch)
tree7da40aff31f83e9ae72f3e2c7caddbf253a0497b
parent9dbaa1b392358fb8bca67060431c737c30ac8edb (diff)
downloadomegle-f1c42c2190eafbf043dc16e51bb956e0dba0e2b8.tar.gz
omegle-f1c42c2190eafbf043dc16e51bb956e0dba0e2b8.zip
add count
git-svn-id: http://xapek.org/svn/common/omegle@1027 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
-rw-r--r--count.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/count.py b/count.py
new file mode 100644
index 0000000..e175f2c
--- /dev/null
+++ b/count.py
@@ -0,0 +1,16 @@
+import httplib
+import urllib
+
+headers = {
+ "Host" : "omegle.com",
+ "Content-type": "application/x-www-form-urlencoded; charset=utf-8",
+ "Accept": "application/json"
+}
+conn = httplib.HTTPConnection('www.omegle.com')
+conn.request("GET",
+ "/count",
+ urllib.urlencode({}),
+ headers)
+print conn.getresponse().read()
+conn.close()
+