/external/autotest/client/common_lib/cros/fake_device_server/client_lib/ |
fail_control.py | 8 import urllib2 26 request = urllib2.Request(self.get_url(['start_failing_requests']), 28 url_h = urllib2.urlopen(request) 35 request = urllib2.Request(self.get_url(['stop_failing_requests']), 37 url_h = urllib2.urlopen(request)
|
oauth.py | 8 import urllib2 26 request = urllib2.Request(self.get_url(['invalidate_all_access_tokens']), 28 url_h = urllib2.urlopen(request) 35 request = urllib2.Request( 38 url_h = urllib2.urlopen(request)
|
devices.py | 9 import urllib2 29 request = urllib2.Request(self.get_url([device_id]), 31 url_h = urllib2.urlopen(request) 37 request = urllib2.Request(self.get_url(), 39 url_h = urllib2.urlopen(request) 54 request = urllib2.Request(self.get_url(), json.dumps(data), 56 url_h = urllib2.urlopen(request)
|
commands.py | 9 import urllib2 29 request = urllib2.Request(self.get_url([command_id]), 31 url_h = urllib2.urlopen(request) 40 request = urllib2.Request(self.get_url(params={'deviceId':device_id}), 42 url_h = urllib2.urlopen(request) 58 request = urllib2.Request(self.get_url([command_id]), json.dumps(data), 65 url_h = urllib2.urlopen(request) 77 request = urllib2.Request(self.get_url(), 80 url_h = urllib2.urlopen(request)
|
meta.py | 7 import urllib2 30 request = urllib2.urlopen(self.get_url(['generation']), None, 33 except urllib2.URLError:
|
oauth_helpers.py | 10 import urllib2 38 request = urllib2.Request(token_url, data=urllib.urlencode(data), 40 url_h = urllib2.urlopen(request) 56 request = urllib2.Request(token_url, data=urllib.urlencode(data), 58 url_h = urllib2.urlopen(request)
|
registration.py | 9 import urllib2 29 url_h = urllib2.urlopen(self.get_url([ticket_id])) 51 request = urllib2.Request(self.get_url([ticket_id]), json.dumps(data), 58 url_h = urllib2.urlopen(request) 73 request = urllib2.Request(self.get_url(), json.dumps(data), headers) 74 url_h = urllib2.urlopen(request) 83 request = urllib2.Request(self.get_url([ticket_id, 'finalize']), 85 url_h = urllib2.urlopen(request)
|
common_client.py | 8 import urllib2 71 params_list.append('='.join([urllib2.quote(kw), 72 urllib2.quote(arg)]))
|
/external/jacoco/.travis/ |
trigger-site-deployment.py | 2 import urllib2 6 req = urllib2.Request(url, data) 13 p = urllib2.urlopen(req)
|
/external/toolchain-utils/cwp/bartlett/test/ |
server_tester.py | 12 import urllib2 30 self.opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(self._jar)) 56 request = urllib2.Request(SERVER_URL + 'upload', datagen, headers) 57 response = urllib2.urlopen(request).read() 62 request = urllib2.Request(AUTH_URL % (SERVER_URL + 'serve')) 67 request = urllib2.Request(AUTH_URL % (SERVER_URL + 'serve/' + key)) 74 request = urllib2.Request(AUTH_URL % (SERVER_URL + 'del/' + key)) 76 request = urllib2.Request(AUTH_URL % (SERVER_URL + 'serve')) 91 request = urllib2.Request(SERVER_URL + 'serve' [all...] |
/external/python/cpython2/Tools/scripts/ |
checkpip.py | 8 import urllib2 16 data = json.loads(urllib2.urlopen(
|
/external/autotest/site_utils/ |
hwid_lib.py | 6 import urllib2 57 'hwid': urllib2.quote(hwid), 62 page_contents = urllib2.urlopen(url_request) 63 except (urllib2.URLError, urllib2.HTTPError) as e:
|
/external/autotest/tko/ |
jsonp_fetcher.cgi | 3 import cgi, traceback, urllib2 26 file_contents = urllib2.urlopen('http://localhost' + path).read() 28 except urllib2.HTTPError:
|
/external/skia/tools/ |
retrieve_from_googlesource.py | 15 import urllib2 29 with closing(urllib2.urlopen(base64_url)) as f:
|
/external/skqp/tools/ |
retrieve_from_googlesource.py | 15 import urllib2 29 with closing(urllib2.urlopen(base64_url)) as f:
|
/external/autotest/client/common_lib/ |
file_utils.py | 10 import urllib2 129 @raises: urllib2.HTTPError or urlib2.URLError exception. Both with added 141 proxy_handler = urllib2.ProxyHandler(proxies) 142 opener = urllib2.build_opener(proxy_handler) 143 urllib2.install_opener(opener) 145 # Unlike urllib.urlopen urllib2.urlopen will immediately throw on error 150 remote_file = urllib2.urlopen(remote_path) 156 except urllib2.HTTPError as e: 163 except urllib2.URLError as e:
|
/external/python/cpython2/Lib/test/ |
test_urllib2net.py | 6 import urllib2 30 _urlopen_with_retry = _wrap_with_retry_thrice(urllib2.urlopen, urllib2.URLError) 34 """Tests urllib2 authentication features.""" 51 # except urllib2.HTTPError, exc: 57 # auth_handler = urllib2.HTTPBasicAuthHandler() 60 # opener = urllib2.build_opener(auth_handler) 69 # urllib2.urlopen, "http://evil:thing@example.com") 77 # calling .close() on urllib2's response objects should close the 107 None, urllib2.URLError) [all...] |
test_urllib2.py | 9 import urllib2 10 from urllib2 import Request, OpenerDirector, AbstractDigestAuthHandler 27 self.assertRaises(ValueError, urllib2.urlopen, 'bogus url') 30 fname = os.path.abspath(urllib2.__file__).replace(os.sep, '/') 44 f = urllib2.urlopen(file_url) 55 self.assertEqual(urllib2.parse_http_list(string), list) 61 urllib2.urlopen( 75 code that previously saw all (urllib2 user)-provided headers in .headers 100 normalization to .title()-case is done by urllib2 before sending headers to 131 >>> mgr = urllib2.HTTPPasswordMgr( [all...] |
/external/toolchain-utils/cwp/interpreter/ |
app_engine_pull.py | 23 import urllib2 47 opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookiejar)) 48 urllib2.install_opener(opener) 56 auth_req = urllib2.Request(auth_uri, data=authreq_data) 58 auth_resp = urllib2.urlopen(auth_req) 59 except urllib2.URLError: 150 serv_req = urllib2.Request(full_serv_uri) 151 serv_resp = urllib2.urlopen(serv_req) 197 serv_req = urllib2.Request(full_serv_uri [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_urllib2net.py | 8 import urllib2 32 _urlopen_with_retry = _wrap_with_retry_thrice(urllib2.urlopen, urllib2.URLError) 36 """Tests urllib2 authentication features.""" 53 # except urllib2.HTTPError, exc: 59 # auth_handler = urllib2.HTTPBasicAuthHandler() 62 # opener = urllib2.build_opener(auth_handler) 71 # urllib2.urlopen, "http://evil:thing@example.com") 79 # calling .close() on urllib2's response objects should close the 123 ('file:///nonsensename/etc/passwd', None, urllib2.URLError) [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_urllib2net.py | 8 import urllib2 32 _urlopen_with_retry = _wrap_with_retry_thrice(urllib2.urlopen, urllib2.URLError) 36 """Tests urllib2 authentication features.""" 53 # except urllib2.HTTPError, exc: 59 # auth_handler = urllib2.HTTPBasicAuthHandler() 62 # opener = urllib2.build_opener(auth_handler) 71 # urllib2.urlopen, "http://evil:thing@example.com") 79 # calling .close() on urllib2's response objects should close the 123 ('file:///nonsensename/etc/passwd', None, urllib2.URLError) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_urllib2net.py | 8 import urllib2 32 _urlopen_with_retry = _wrap_with_retry_thrice(urllib2.urlopen, urllib2.URLError) 36 """Tests urllib2 authentication features.""" 53 # except urllib2.HTTPError, exc: 59 # auth_handler = urllib2.HTTPBasicAuthHandler() 62 # opener = urllib2.build_opener(auth_handler) 71 # urllib2.urlopen, "http://evil:thing@example.com") 79 # calling .close() on urllib2's response objects should close the 123 ('file:///nonsensename/etc/passwd', None, urllib2.URLError) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_urllib2net.py | 8 import urllib2 32 _urlopen_with_retry = _wrap_with_retry_thrice(urllib2.urlopen, urllib2.URLError) 36 """Tests urllib2 authentication features.""" 53 # except urllib2.HTTPError, exc: 59 # auth_handler = urllib2.HTTPBasicAuthHandler() 62 # opener = urllib2.build_opener(auth_handler) 71 # urllib2.urlopen, "http://evil:thing@example.com") 79 # calling .close() on urllib2's response objects should close the 123 ('file:///nonsensename/etc/passwd', None, urllib2.URLError) [all...] |
/external/autotest/client/cros/enterprise/ |
enterprise_fake_dmserver.py | 7 import urllib2 64 if urllib2.urlopen('%stest/ping' % self.server_url).getcode() == 200: 65 urllib2.urlopen('%sconfiguration/test/exit' % self.server_url)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_urllib2net.py | 8 import urllib2
32 _urlopen_with_retry = _wrap_with_retry_thrice(urllib2.urlopen, urllib2.URLError)
36 """Tests urllib2 authentication features."""
53 # except urllib2.HTTPError, exc:
59 # auth_handler = urllib2.HTTPBasicAuthHandler()
62 # opener = urllib2.build_opener(auth_handler)
71 # urllib2.urlopen, "http://evil:thing@example.com")
79 # calling .close() on urllib2's response objects should close the
123 ('file:///nonsensename/etc/passwd', None, urllib2.URLError), [all...] |