Home
last modified time | relevance | path

Searched refs:auth_header (Results 1 – 8 of 8) sorted by relevance

/external/python/cpython2/Lib/
Durllib2.py894 if req.get_header(self.auth_header, None) == auth:
896 req.add_unredirected_header(self.auth_header, auth)
904 auth_header = 'Authorization' variable in HTTPBasicAuthHandler
915 auth_header = 'Proxy-authorization' variable in ProxyBasicAuthHandler
965 def http_error_auth_reqed(self, auth_header, host, req, headers): argument
966 authreq = headers.get(auth_header, None)
988 if req.headers.get(self.auth_header, None) == auth_val:
990 req.add_unredirected_header(self.auth_header, auth_val)
1092 auth_header = 'Authorization' variable in HTTPDigestAuthHandler
1105 auth_header = 'Proxy-Authorization' variable in ProxyDigestAuthHandler
/external/python/httplib2/tests/
D__init__.py611 auth_header = request.headers.get("authorization", "")
612 if not auth_header:
614 if " " not in auth_header:
618 scheme, data = auth_header.split(" ", 1)
/external/python/cpython3/Lib/urllib/
Drequest.py1011 if req.get_header(self.auth_header, None) == auth:
1013 req.add_unredirected_header(self.auth_header, auth)
1046 auth_header = 'Authorization' variable in HTTPBasicAuthHandler
1057 auth_header = 'Proxy-authorization' variable in ProxyBasicAuthHandler
1097 def http_error_auth_reqed(self, auth_header, host, req, headers): argument
1098 authreq = headers.get(auth_header, None)
1123 if req.headers.get(self.auth_header, None) == auth_val:
1125 req.add_unredirected_header(self.auth_header, auth_val)
1227 auth_header = 'Authorization' variable in HTTPDigestAuthHandler
1240 auth_header = 'Proxy-Authorization' variable in ProxyDigestAuthHandler
/external/python/cpython2/Lib/test/
Dtest_urllib2.py1229 def _test_basic_auth(self, opener, auth_handler, auth_header, argument
1250 self.assertFalse(http_handler.requests[0].has_header(auth_header))
1253 self.assertEqual(http_handler.requests[1].get_header(auth_header),
1255 self.assertEqual(http_handler.requests[1].unredirected_hdrs[auth_header],
1263 self.assertFalse(http_handler.requests[0].has_header(auth_header))
/external/python/cpython3/Lib/test/
Dtest_urllib2.py1608 def _test_basic_auth(self, opener, auth_handler, auth_header, argument
1629 self.assertFalse(http_handler.requests[0].has_header(auth_header))
1633 self.assertEqual(http_handler.requests[1].get_header(auth_header),
1635 self.assertEqual(http_handler.requests[1].unredirected_hdrs[auth_header],
1643 self.assertFalse(http_handler.requests[0].has_header(auth_header))
/external/python/oauth2client/tests/
Dtest_client.py1959 auth_header = 'Basic Y2xpZW50X2lkKzE6c2Vjexc_managerV0KzE=',
1962 authorization_header=auth_header,
1977 self.assertEqual(test_request['headers']['Authorization'], auth_header)
/external/python/cpython2/Misc/
DHISTORY3834 auth_header. The earlier versions would fail at runtime.
/external/python/cpython3/Misc/
DHISTORY21218 auth_header. The earlier versions would fail at runtime.