Searched defs:urllib2 (Results 1 - 25 of 98) sorted by relevance

1234

/external/chromium-trace/catapult/telemetry/third_party/modulegraph/modulegraph_tests/testpkg-compatmodule/pkg/
H A Dapi2.py1 import urllib2 namespace
/external/chromium-trace/catapult/telemetry/third_party/web-page-replay/
H A Dtest_utils.py17 import urllib2 namespace
22 urllib2.urlopen('https://example.com', timeout=10)
24 except urllib2.URLError as err:
/external/skia/tools/
H A Dretrieve_from_googlesource.py15 import urllib2 namespace
29 with closing(urllib2.urlopen(base64_url)) as f:
/external/autotest/client/common_lib/cros/fake_device_server/client_lib/
H A Dmeta.py7 import urllib2 namespace
30 request = urllib2.urlopen(self.get_url(['generation']), None,
33 except urllib2.URLError:
H A Dcommon_client.py8 import urllib2 namespace
71 params_list.append('='.join([urllib2.quote(kw),
72 urllib2.quote(arg)]))
H A Dfail_control.py8 import urllib2 namespace
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)
H A Doauth.py8 import urllib2 namespace
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)
H A Doauth_helpers.py10 import urllib2 namespace
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)
H A Dcommands.py9 import urllib2 namespace
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)
H A Ddevices.py9 import urllib2 namespace
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)
H A Dregistration.py9 import urllib2 namespace
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)
/external/chromium-trace/catapult/experimental/bisect_lib/
H A Dfetch_revision_info.py15 import urllib2 namespace
26 response = urllib2.urlopen(url).read()
H A Dfetch_intervening_revisions.py19 import urllib2 namespace
46 urllib2.URLError: The request to gitiles failed.
66 response = urllib2.urlopen(current_page_url).read()
/external/autotest/tko/
H A Dvertical_text.py3 import gd, os, cStringIO, urllib2, sys namespace
H A Djsonp_fetcher.cgi3 import cgi, traceback, urllib2 namespace
26 file_contents = urllib2.urlopen('http://localhost' + path).read()
28 except urllib2.HTTPError:
/external/chromium-trace/catapult/common/lab/
H A Dhardware.py12 import urllib2 namespace
53 master_data = json.load(urllib2.urlopen(
H A Dcommits.py13 import urllib2 namespace
63 data = json.loads(''.join(urllib2.urlopen(url).read().splitlines()[1:]))
/external/skia/platform_tools/android/bin/
H A Dhttp_download.py15 import urllib2 namespace
53 proxy_handler = urllib2.ProxyHandler({
56 opener = urllib2.build_opener(proxy_handler)
58 opener = urllib2.build_opener()
60 urllib2.install_opener(opener)
68 src = urllib2.urlopen(url, timeout=30)
83 except urllib2.HTTPError, e:
88 except urllib2.URLError:
/external/autotest/client/common_lib/
H A Dfile_utils.py8 import urllib2 namespace
127 @raises: urllib2.HTTPError or urlib2.URLError exception. Both with added
139 proxy_handler = urllib2.ProxyHandler(proxies)
140 opener = urllib2.build_opener(proxy_handler)
141 urllib2.install_opener(opener)
143 # Unlike urllib.urlopen urllib2.urlopen will immediately throw on error
148 remote_file = urllib2.urlopen(remote_path)
154 except urllib2.HTTPError as e:
161 except urllib2.URLError as e:
/external/autotest/client/cros/
H A Dhttp_speed.py7 import logging, random, time, urllib2 namespace
21 result = urllib2.urlopen(url, data=data, timeout=TIMEOUT)
/external/autotest/frontend/afe/json_rpc/
H A Dproxy.py23 import urllib2 namespace
105 request = urllib2.Request(self.__serviceURL, data=postdata,
107 respdata = urllib2.urlopen(request).read()
/external/autotest/server/cros/ap_configurators/
H A Dfetch_prebuilt_pyauto.py29 import urllib2 namespace
116 response = urllib2.urlopen(last_change_url)
/external/chromium-trace/catapult/catapult_build/perfbot_stats/
H A Dchrome_perf_stats.py22 import urllib2 namespace
67 response = urllib2.urlopen(BUILDER_LIST_URL)
135 urllib2.urlopen(url=url, data=data).read()
147 response = urllib2.urlopen(url)
H A Dchrome_perf_step_timings.py21 import urllib2 namespace
133 response = urllib2.urlopen(url)
141 response = urllib2.urlopen(url)
153 response = urllib2.urlopen(url)
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/scripts/
H A Dfetch_gae_sdk.py16 import urllib2 namespace
24 version_info_json = urllib2.urlopen(_SDK_URL).read()
62 sdk_contents = StringIO.StringIO(urllib2.urlopen(sdk_url).read())

Completed in 3302 milliseconds

1234