(self, domain, path, use_https=True)
| 438 | return r |
| 439 | |
| 440 | def get_content(self, domain, path, use_https=True): |
| 441 | schema = "https" if use_https else "http" |
| 442 | port = self.https_port if use_https else self.http_port |
| 443 | r = self.curl_get(f"{schema}://{domain}:{port}{path}") |
| 444 | assert r.exit_code == 0 |
| 445 | return r.stdout |
| 446 | |
| 447 | def get_json_content(self, domain, path, use_https=True, insecure=False): |
| 448 | schema = "https" if use_https else "http" |