Home
last modified time | relevance | path

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

12345678

/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/python/cpython3/Lib/test/
Dtest_urllib2_localnet.py307 self.assertTrue(urllib.request.urlopen(self.server_url))
315 self.assertRaises(urllib.error.HTTPError, urllib.request.urlopen, self.server_url)
459 def urlopen(self, url, data=None, **kwargs): member in TestUrlopen
461 f = urllib.request.urlopen(url, data, **kwargs)
509 data = self.urlopen("http://localhost:%s/" % handler.port)
524 data = self.urlopen("http://localhost:%s/" % handler.port)
532 self.urlopen("http://localhost:%s/weeble" % handler.port)
545 data = self.urlopen("http://localhost:%s/bizarre" % handler.port)
552 data = self.urlopen("http://localhost:%s/bizarre" % handler.port,
560 data = self.urlopen("https://localhost:%s/bizarre" % handler.port, context=context)
[all …]
Dtest_urllibnet.py30 f = urllib.request.urlopen(support.TEST_HTTP_URL)
52 def urlopen(self, *args, **kwargs): member in urlopenNetworkTests
55 r = urllib.request.urlopen(*args, **kwargs)
63 with self.urlopen(self.url) as open_url:
72 with self.urlopen(self.url) as open_url:
80 with self.urlopen(self.url) as open_url:
89 with self.urlopen(self.url) as open_url:
141 urllib.request.urlopen("http://{}/".format(bogus_domain))
Dtest_urllib2net.py39 _urlopen_with_retry = _wrap_with_retry_thrice(urllib.request.urlopen,
129 self.assertRaises(ValueError, urllib.request.urlopen,'./relative_path/to/file')
163 res = urllib.request.urlopen(req)
171 res = urllib.request.urlopen(req)
197 with urllib.request.urlopen(URL) as res:
205 req = urllib.request.urlopen(URL)
214 urlopen = urllib.request.build_opener(*handlers).open
216 urlopen = _wrap_with_retry_thrice(urlopen, urllib.error.URLError)
227 f = urlopen(url, req, TIMEOUT)
Dtest_urllib.py36 def urlopen(url, data=None, proxies=None): function
145 self.returned_obj = urlopen("file:%s" % self.pathname)
207 self.assertRaises(ValueError,urllib.request.urlopen,'./' + self.pathname)
306 fp = urlopen("http://python.org/")
319 fp = urllib.request.urlopen(url)
327 resp = urlopen("http://www.python.org")
352 self.assertRaises(OSError, urlopen, "http://python.org/")
368 urlopen("http://python.org/")
381 self.assertRaises(urllib.error.HTTPError, urlopen,
391 self.assertRaises(OSError, urlopen, "http://something")
[all …]
/external/perfetto/tools/
Dextract_linux_syscall_tables44 response = urllib2.urlopen(KSRC + 'arch/x86/entry/syscalls/syscall_64.tbl')
47 response = urllib2.urlopen(KSRC + 'arch/arm/tools/syscall.tbl')
50 response = urllib2.urlopen(KSRC + 'arch/arm64/include/asm/unistd32.h')
57 response = urllib2.urlopen(KSRC + 'include/uapi/asm-generic/unistd.h')
/external/autotest/client/common_lib/cros/fake_device_server/client_lib/
Dcommands.py31 url_h = urllib2.urlopen(request)
42 url_h = urllib2.urlopen(request)
65 url_h = urllib2.urlopen(request)
80 url_h = urllib2.urlopen(request)
Dregistration.py29 url_h = urllib2.urlopen(self.get_url([ticket_id]))
58 url_h = urllib2.urlopen(request)
74 url_h = urllib2.urlopen(request)
85 url_h = urllib2.urlopen(request)
Ddevices.py31 url_h = urllib2.urlopen(request)
39 url_h = urllib2.urlopen(request)
56 url_h = urllib2.urlopen(request)
Doauth.py28 url_h = urllib2.urlopen(request)
38 url_h = urllib2.urlopen(request)
Dfail_control.py28 url_h = urllib2.urlopen(request)
37 url_h = urllib2.urlopen(request)
/external/autotest/server/
Dlab_status_unittest.py127 urllib2.urlopen(mox.IgnoreArg()).AndReturn(
139 urllib2.urlopen(mox.IgnoreArg()).AndRaise(
142 urllib2.urlopen(mox.IgnoreArg()).AndReturn(
154 urllib2.urlopen(mox.IgnoreArg()).AndReturn(
157 urllib2.urlopen(mox.IgnoreArg()).AndReturn(
170 urllib2.urlopen(mox.IgnoreArg()).AndRaise(
184 urllib2.urlopen(mox.IgnoreArg()).AndReturn(
/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/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)
201 from urllib2 import urlopen
203 from urllib.request import urlopen
208 result = urlopen(url, context=ssl_context)
210 result = urlopen(url)
/external/python/futures/
Dcrawl.py9 from urllib2 import urlopen
11 from urllib.request import urlopen
30 return urlopen(url, **kwargs).read()
/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/toolchain-utils/cwp/interpreter/
Dapp_engine_pull.py58 auth_resp = urllib2.urlopen(auth_req)
151 serv_resp = urllib2.urlopen(serv_req)
198 urllib2.urlopen(serv_req)
214 serv_resp = urllib2.urlopen(serv_req)
/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…
/external/autotest/site_utils/
Dset_tree_status.py22 response = urllib.urlopen(CHROMEOS_STATUS_SERVER + '/current?format=raw')
46 urllib.urlopen(CHROMEOS_STATUS_SERVER + '/status', urllib.urlencode(data))
/external/autotest/client/cros/enterprise/
Denterprise_fake_dmserver.py61 if urllib2.urlopen('%stest/ping' % self.server_url).getcode() == 200:
62 urllib2.urlopen('%sconfiguration/test/exit' % self.server_url)

12345678