CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 112: H12-891: HCIE-Datacom

You write the following Python code to invoke a RESTful API to obtain the token ID of iMaster NCE. Which of the following statements are correct? (Choose all that apply.)import requestsresponse = requests.get("https://139.9.213.72")print(response.json())The execution result is as follows:requests.exceptions.SSLError:…

Nội dung câu hỏi

You write the following Python code to invoke a RESTful API to obtain the token ID of iMaster NCE. Which of the following statements are correct? (Choose all that apply.)import requestsresponse = requests.get("https://139.9.213.72")print(response.json())The execution result is as follows:requests.exceptions.SSLError: HTTPSConnectionPool(host='139.9.213.72', port=18002): Max retries exceeded with url: /controller/v2/tokens (Caused by SSLError(CertificateError("hostname '139.9.213.72' doesn't match 'devzone.huawei.com'",),))

Các lựa chọn

Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.

  1. A. The client does not trust the SSL certificate of the server. — đáp án hiện tại
  2. B. The SSL certificate verification fails. — đáp án hiện tại
  3. C. The code can be modified as follows:import requestsresponse = requests.get("https://139.9.213.72", verify=False) print(response.json()) — đáp án hiện tại
  4. D. The code can be modified as follows:import requestsresponse = requests.post("https://139.9.213.72" verify=False) print(response.json())

Cộng đồng

0 bình luận công khai. Tên thành viên được ẩn một phần.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề