Home
last modified time | relevance | path

Searched refs:urlopen (Results 1 – 25 of 206) sorted by relevance

123456789

/external/python/cpython2/Lib/test/
Dtest_urllibnet.py46 f = _open_with_retry(urllib.urlopen, "http://www.example.com/")
64 def urlopen(self, *args): member in urlopenNetworkTests
65 return _open_with_retry(urllib.urlopen, *args)
69 open_url = self.urlopen("http://www.example.com/")
81 open_url = self.urlopen("http://www.example.com/")
92 open_url = self.urlopen("http://www.example.com/")
105 open_url = self.urlopen(URL)
126 open_url = self.urlopen("http://www.example.com/")
154 urllib.urlopen, "http://sadflkjsasf.i.nvali.d/")
212 response = urllib.urlopen("https://self-signed.pythontest.net", context=context)
Dtest_urllib2_localnet.py307 self.assertTrue(urllib2.urlopen(self.server_url))
318 self.assertRaises(urllib2.HTTPError, urllib2.urlopen, self.server_url)
451 def urlopen(self, url, data=None, **kwargs): member in TestUrlopen
453 f = urllib2.urlopen(url, data, **kwargs)
495 f = urllib2.urlopen('http://localhost:%s/' % handler.port)
508 urllib2.urlopen('http://localhost:%s/weeble' % handler.port)
525 f = urllib2.urlopen('http://localhost:%s/bizarre' % handler.port)
536 f = urllib2.urlopen('http://localhost:%s/bizarre' % handler.port, 'get=with_feeling')
546 data = self.urlopen("https://localhost:%s/bizarre" % handler.port, context=context)
552 data = self.urlopen("https://localhost:%s/bizarre" % handler.port,
[all …]
Dtest_urllib2net.py30 _urlopen_with_retry = _wrap_with_retry_thrice(urllib2.urlopen, urllib2.URLError)
125 self.assertRaises(ValueError, urllib2.urlopen,'./relative_path/to/file')
159 res = urllib2.urlopen(req)
194 req = urllib2.urlopen(URL)
203 urlopen = urllib2.build_opener(*handlers).open
205 urlopen = _wrap_with_retry_thrice(urlopen, urllib2.URLError)
215 f = urlopen(url, req, TIMEOUT)
Dtest_urllib.py84 self.returned_obj = urllib.urlopen("file:%s" % self.pathname)
145 self.assertRaises(ValueError,urllib.urlopen,'./' + self.pathname)
242 fp = urllib.urlopen("http://python.org/")
255 fp = urllib.urlopen(url)
269 self.assertRaises(IOError, urllib.urlopen, "http://python.org/")
285 urllib.urlopen("http://python.org/")
298 self.assertRaises(IOError, urllib.urlopen,
308 self.assertRaises(IOError, urllib.urlopen, 'http://something')
313 self.assertRaises(IOError, urllib.urlopen,
319 fp = urllib.urlopen(tmp_fileurl)
[all …]
/external/perfetto/tools/
Dextract_linux_syscall_tables6 from urllib.request import urlopen
45 response = urlopen(KSRC + 'arch/x86/entry/syscalls/syscall_64.tbl')
48 response = urlopen(KSRC + 'arch/x86/entry/syscalls/syscall_32.tbl')
51 response = urlopen(KSRC + 'arch/arm/tools/syscall.tbl')
54 response = urlopen(KSRC + 'arch/arm64/include/asm/unistd32.h')
61 response = urlopen(KSRC + 'include/uapi/asm-generic/unistd.h')
/external/python/cpython3/Lib/test/
Dtest_urllib2_localnet.py308 self.assertTrue(urllib.request.urlopen(self.server_url))
316 self.assertRaises(urllib.error.HTTPError, urllib.request.urlopen, self.server_url)
463 def urlopen(self, url, data=None, **kwargs): member in TestUrlopen
465 f = urllib.request.urlopen(url, data, **kwargs)
513 data = self.urlopen("http://localhost:%s/" % handler.port)
528 data = self.urlopen("http://localhost:%s/" % handler.port)
536 self.urlopen("http://localhost:%s/weeble" % handler.port)
549 data = self.urlopen("http://localhost:%s/bizarre" % handler.port)
556 data = self.urlopen("http://localhost:%s/bizarre" % handler.port,
564 data = self.urlopen("https://localhost:%s/bizarre" % handler.port, context=context)
[all …]
Dtest_urllibnet.py32 f = urllib.request.urlopen(support.TEST_HTTP_URL)
58 def urlopen(self, *args, **kwargs): member in urlopenNetworkTests
61 r = urllib.request.urlopen(*args, **kwargs)
69 with self.urlopen(self.url) as open_url:
78 with self.urlopen(self.url) as open_url:
86 with self.urlopen(self.url) as open_url:
95 with self.urlopen(self.url) as open_url:
147 urllib.request.urlopen("http://{}/".format(bogus_domain))
Dtest_urllib2net.py38 _urlopen_with_retry = _wrap_with_retry_thrice(urllib.request.urlopen,
131 self.assertRaises(ValueError, urllib.request.urlopen,'./relative_path/to/file')
165 res = urllib.request.urlopen(req)
173 res = urllib.request.urlopen(req)
199 with urllib.request.urlopen(URL) as res:
207 req = urllib.request.urlopen(URL)
216 urlopen = urllib.request.build_opener(*handlers).open
218 urlopen = _wrap_with_retry_thrice(urlopen, urllib.error.URLError)
229 f = urlopen(url, req, support.INTERNET_TIMEOUT)
Dtest_urllib.py36 def urlopen(url, data=None, proxies=None): function
155 self.returned_obj = urlopen("file:%s" % self.quoted_pathname)
226 self.assertRaises(ValueError,urllib.request.urlopen,'./' + self.pathname)
347 fp = urlopen("http://python.org/")
360 fp = urllib.request.urlopen(url)
368 resp = urlopen("http://www.python.org")
390 urllib.request.urlopen(f"http:{schemeless_url}")
393 urllib.request.urlopen(f"https:{schemeless_url}")
395 resp = urlopen(f"http:{schemeless_url}")
415 urllib.request.urlopen(f"http:{schemeless_url}")
[all …]
/external/autotest/client/common_lib/cros/fake_device_server/client_lib/
Dcommands.py31 url_h = urllib.request.urlopen(request)
43 url_h = urllib.request.urlopen(request)
67 url_h = urllib.request.urlopen(request)
82 url_h = urllib.request.urlopen(request)
Dregistration.py29 url_h = urllib.request.urlopen(self.get_url([ticket_id]))
58 url_h = urllib.request.urlopen(request)
76 url_h = urllib.request.urlopen(request)
87 url_h = urllib.request.urlopen(request)
Ddevices.py30 url_h = urllib.request.urlopen(request)
38 url_h = urllib.request.urlopen(request)
55 url_h = urllib.request.urlopen(request)
/external/grpc-grpc/tools/run_tests/python_utils/
Dstart_port_server.py36 urllib.urlopen('http://localhost:%d/version_number' %
54 urllib.urlopen(
95 urllib.urlopen(
108 urllib.urlopen(port_server_url).read()
/external/openscreen/tools/
Dcurlish.py13 from urllib2 import HTTPError, URLError, urlopen
16 from urllib.request import urlopen
30 response = urlopen(download_url)
/external/rust/crates/grpcio-sys/grpc/tools/run_tests/python_utils/
Dstart_port_server.py39 request.urlopen('http://localhost:%d/version_number' %
57 request.urlopen('http://localhost:%d/quitquitquit' %
103 request.urlopen('http://localhost:%d/get' %
116 request.urlopen(port_server_url).read()
/external/autotest/server/
Dlab_status_unittest.py133 urllib.request.urlopen(mox.IgnoreArg()).AndReturn(
145 urllib.request.urlopen(mox.IgnoreArg()).AndRaise(
148 urllib.request.urlopen(mox.IgnoreArg()).AndReturn(
160 urllib.request.urlopen(mox.IgnoreArg()).AndReturn(
163 urllib.request.urlopen(mox.IgnoreArg()).AndReturn(
176 urllib.request.urlopen(mox.IgnoreArg()).AndRaise(
190 urllib.request.urlopen(mox.IgnoreArg()).AndReturn(
/external/skia/bin/
Dfetch-gn17 from urllib2 import urlopen
19 from urllib.request import urlopen
31 f.write(urlopen(url).read())
/external/python/futures/
Dcrawl.py9 from urllib2 import urlopen
11 from urllib.request import urlopen
30 return urlopen(url, **kwargs).read()
/external/skia/experimental/tools/
Dget_examples.py15 from urllib2 import urlopen
19 from urllib.request import urlopen
46 content = urlopen(url).read()
105 for line in urlopen('https://fiddle.skia.org/named/'):
/external/llvm-project/llvm/utils/
Dunicode-case-fold.py25 from urllib.request import urlopen
27 from urllib2 import urlopen
102 f = urlopen(sys.argv[1])
/external/deqp/external/
Dfetch_sources.py113 from urllib2 import urlopen
115 from urllib.request import urlopen
120 result = urlopen(url, context=ssl_context)
122 result = urlopen(url)
202 from urllib2 import urlopen
204 from urllib.request import urlopen
209 result = urlopen(url, context=ssl_context)
211 result = urlopen(url)
/external/python/cpython2/Doc/howto/
Durllib2.rst31 the *urlopen* function. This is capable of fetching URLs using a variety of
41 For straightforward situations *urlopen* is very easy to use. But as soon as you
56 response = urllib2.urlopen('http://python.org/')
67 object that specifies the URL you want to fetch. Calling ``urlopen`` with this
75 response = urllib2.urlopen(req)
112 response = urllib2.urlopen(req)
143 >>> data = urllib2.urlopen(full_url)
177 response = urllib2.urlopen(req)
187 *urlopen* raises :exc:`URLError` when it cannot handle a response (though as
205 >>> try: urllib2.urlopen(req)
[all …]
/external/python/cpython2/Doc/library/
Durllib.rst12 Also note that the :func:`urllib.request.urlopen` function in Python 3 is
13 equivalent to :func:`urllib2.urlopen` and that :func:`urllib.urlopen` has
22 Wide Web. In particular, the :func:`urlopen` function is similar to the
44 .. function:: urlopen(url[, data[, proxies[, context]]])
80 HTTP server redirects a client to another URL. The :func:`urlopen` function
94 The :func:`urlopen` function works transparently with proxies which do not
115 In a Mac OS X environment, :func:`urlopen` will retrieve proxy information
128 filehandle = urllib.urlopen(some_url, proxies=proxies)
130 filehandle = urllib.urlopen(some_url, proxies={})
132 filehandle = urllib.urlopen(some_url, proxies=None)
[all …]
/external/python/cpython3/Doc/howto/
Durllib2.rst31 the *urlopen* function. This is capable of fetching URLs using a variety of
41 For straightforward situations *urlopen* is very easy to use. But as soon as you
56 with urllib.request.urlopen('http://python.org/') as response:
67 with urllib.request.urlopen('http://python.org/') as response:
82 object that specifies the URL you want to fetch. Calling ``urlopen`` with this
90 with urllib.request.urlopen(req) as response:
128 with urllib.request.urlopen(req) as response:
159 >>> data = urllib.request.urlopen(full_url)
194 with urllib.request.urlopen(req) as response:
204 *urlopen* raises :exc:`URLError` when it cannot handle a response (though as
[all …]
/external/scapy/test/
Dnmap.uts23 from urllib.request import urlopen
25 from urllib2 import urlopen
29 …open('nmap-os-fingerprints', 'wb').write(urlopen('https://raw.githubusercontent.com/nmap/nmap/9efe…

123456789