Skip to content

Commit

Permalink
Merge pull request #84 from pkillur/patch-1
Browse files Browse the repository at this point in the history
Update to include handling of self-signed certs
  • Loading branch information
klevenstein authored Mar 5, 2020
2 parents 76fbcba + 392c265 commit a9c936a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions labs/coding-202-parsing-json/1.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ To get started, create a simple Python script that can make an HTTP request to t

```
from urllib.request import Request, urlopen
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
req = Request('https://cmxlocationsandbox.cisco.com/api/config/v1/maps/info/DevNetCampus/DevNetBuilding/DevNetZone')
req.add_header('Authorization', 'Basic bGVhcm5pbmc6bGVhcm5pbmc=')
response = urlopen(req)
Expand Down

0 comments on commit a9c936a

Please sign in to comment.