Home
last modified time | relevance | path

Searched refs:splithost (Results 1 – 14 of 14) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_urllib.py874 splithost = urllib.splithost
875 self.assertEqual(splithost('//www.example.org:80/foo/bar/baz.html'),
877 self.assertEqual(splithost('//www.example.org:80'),
879 self.assertEqual(splithost('/foo/bar/baz.html'),
883 self.assertEqual(splithost('//127.0.0.1#@host.com'),
885 self.assertEqual(splithost('//127.0.0.1#@host.com:80'),
887 self.assertEqual(splithost('//127.0.0.1:80#@host.com'),
891 self.assertEqual(splithost("///file"),
895 self.assertEqual(splithost("//example.net/file;"),
897 self.assertEqual(splithost("//example.net/file?"),
[all …]
/external/python/cpython2/Lib/
Durllib.py199 host, selector = splithost(proxyhost)
242 return url2pathname(splithost(url1)[1]), hdrs
253 garbage, path = splithost(path or "")
301 host, selector = splithost(url)
317 realhost, rest = splithost(rest)
396 host, selector = splithost(url)
411 realhost, rest = splithost(rest)
478 host, file = splithost(url)
517 host, path = splithost(url)
731 host, selector = splithost(url)
[all …]
Durllib2.py120 from urllib import (unwrap, unquote, splittype, splithost, quote,
288 self.host, self.__r_host = splithost(self.__r_type)
1141 sel_host, sel_path = splithost(sel)
Dxmlrpclib.py1574 self.__host, self.__handler = urllib.splithost(uri)
/external/python/cpython3/Misc/NEWS.d/
D3.6.2rc2.rst36 Fix urllib.parse.splithost() to correctly parse fragments. For example,
37 ``splithost('//127.0.0.1#@evil.com/')`` now correctly returns the
D3.5.4rc1.rst36 Fix urllib.parse.splithost() to correctly parse fragments. For example,
37 ``splithost('//127.0.0.1#@evil.com/')`` now correctly returns the
D3.7.0a1.rst65 Fix urllib.parse.splithost() to correctly parse fragments. For example,
66 ``splithost('//127.0.0.1#@evil.com/')`` now correctly returns the
/external/python/cpython3/Lib/test/
Dtest_urlparse.py1024 splithost = urllib.parse.splithost
1025 self.assertEqual(splithost('//www.example.org:80/foo/bar/baz.html'),
1027 self.assertEqual(splithost('//www.example.org:80'),
1029 self.assertEqual(splithost('/foo/bar/baz.html'),
1033 self.assertEqual(splithost('//127.0.0.1#@host.com'),
1035 self.assertEqual(splithost('//127.0.0.1#@host.com:80'),
1037 self.assertEqual(splithost('//127.0.0.1:80#@host.com'),
1041 self.assertEqual(splithost("///file"),
1045 self.assertEqual(splithost("//example.net/file;"),
1047 self.assertEqual(splithost("//example.net/file?"),
[all …]
/external/python/cpython3/Lib/urllib/
Drequest.py105 splittype, splithost, splitport, splituser, splitpasswd,
384 self.host, self.selector = splithost(rest)
1265 sel_host, sel_path = splithost(sel)
1742 host, selector = splithost(proxyhost)
1787 return url2pathname(splithost(url1)[1]), hdrs
1797 garbage, path = splithost(path or "")
1856 host, selector = splithost(url)
1872 realhost, rest = splithost(rest)
1980 host, file = splithost(url)
2013 host, path = splithost(url)
[all …]
Dparse.py980 def splithost(url): function
/external/python/cpython2/Tools/webchecker/
Dwebsucker.py91 host, path = urllib.splithost(rest)
/external/python/cpython3/Lib/xmlrpc/
Dclient.py1419 self.__host, self.__handler = urllib.parse.splithost(uri)
/external/python/cpython2/Misc/NEWS.d/
D2.7.15rc1.rst72 Fix urllib.splithost() to correctly parse fragments. For example,
73 ``splithost('//127.0.0.1#@evil.com/')`` now correctly returns the
/external/python/cpython2/Doc/library/
Durllib.rst314 urllib also exposes certain utility functions like splittype, splithost and