Skip to content

Commit

Permalink
IPv6 client example
Browse files Browse the repository at this point in the history
  • Loading branch information
dotcomboom committed Mar 14, 2019
1 parent 8c79a07 commit 5b9e3ec
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions examples/tests_client_ipv6.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import pituophis

# Run a server on localhost, port 70

req = pituophis.Request()
req.host = '[::1]' # or [0:0:0:0:0:0:0:1] (make sure you have [])
resp = req.get()

menu = resp.menu()

for selector in menu:
print('--')
print(selector.type)
print(selector.text)
print(selector.path)
print(selector.host)
print(selector.port)
print(selector.tls)

print('--')

0 comments on commit 5b9e3ec

Please sign in to comment.