Spring Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Huawei HCIE-Datacom V1.0 H12-891_V1.0 Question # 5 Topic 1 Discussion

Huawei HCIE-Datacom V1.0 H12-891_V1.0 Question # 5 Topic 1 Discussion

H12-891_V1.0 Exam Topic 1 Question 5 Discussion:
Question #: 5
Topic #: 1

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?

import requests

response = requests.get( " https://139.9.213.72 " )

print(response.json())

Error returned:

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 ' )))

Options:


A.

The client does not trust the SSL certificate of the server.


B.

The SSL certificate verification fails.


C.

The code can be modified as follows:import requestsresponse = requests.get( " https://139.9.213.72 " , verify=False)print(response.json())


D.

The code can be modified as follows:import requestsresponse = requests.post( " http://139.9.213.72 " , verify=False)print(response.json())


Get Premium H12-891_V1.0 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.