(self, req, fp, code, msg, headers)
| 1035 | auth_header = 'Proxy-authorization' |
| 1036 | |
| 1037 | def http_error_407(self, req, fp, code, msg, headers): |
| 1038 | # http_error_auth_reqed requires that there is no userinfo component in |
| 1039 | # authority. Assume there isn't one, since urllib.request does not (and |
| 1040 | # should not, RFC 3986 s. 3.2.1) support requests for URLs containing |
| 1041 | # userinfo. |
| 1042 | authority = req.host |
| 1043 | response = self.http_error_auth_reqed('proxy-authenticate', |
| 1044 | authority, req, headers) |
| 1045 | return response |
| 1046 | |
| 1047 | |
| 1048 | # Return n random bytes. |
nothing calls this directly
no test coverage detected