Hi.
I am trying to submit an app for Apple app store.
It uses the python request module.
Apple request that such an app should support IPv6-only Networks.
https://developer.apple.com/news/?id=05042016a
The following snippet shows that ipv6 is not included.
It shows:
socket.has_ipv6 = False
error message: "error: getsockaddrarg: bad family"
import requests, socket
# Test of python has ipvp
print("Has ipv6?: %s\n"%socket.has_ipv6)
root='http://ipv6.whatismyv6.com/'
url=root
params = {}
try:
r = requests.get(url, params=params)
print("Request works\n")
except requests.exceptions.RequestException as e:
print("ERROR: Request does not work!")
print(str(e.message))
I have tested this on pythonista 3.0 and in the 2.7 and 3.5 interpreter.