Skip to content

Commit 392c265

Browse files
authored
Update to include handling of self-signed certs
Python3 handles self signed certs differently
1 parent 76fbcba commit 392c265

File tree

1 file changed

+2
-0
lines changed
  • labs/coding-202-parsing-json

1 file changed

+2
-0
lines changed

labs/coding-202-parsing-json/1.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ To get started, create a simple Python script that can make an HTTP request to t
3030

3131
```
3232
from urllib.request import Request, urlopen
33+
import ssl
34+
ssl._create_default_https_context = ssl._create_unverified_context
3335
req = Request('https://cmxlocationsandbox.cisco.com/api/config/v1/maps/info/DevNetCampus/DevNetBuilding/DevNetZone')
3436
req.add_header('Authorization', 'Basic bGVhcm5pbmc6bGVhcm5pbmc=')
3537
response = urlopen(req)

0 commit comments

Comments
 (0)