Practice – devcor_350-901_Cisco_Platforms

Strength:
0%
Answered: 0 • Correct: 0 • Incorrect: 0

Logged in as Guest

Fill in the code that stores a UCS session cookie after login.

Drag the correct code snippets from the options panel into the placeholders in the code window.

r = requests.post(login_url, json=payload, verify=False, timeout=10) r.raise_for_status() cookie = {{1}} headers = {"Cookie": cookie}

Drag a snippet from the right into each blank box in the code.

Available snippets

r.headers.get("Set-Cookie")
r.cookies.strip()
r.headers.get("Authorization")
r.json()["cookie"]
r.headers["Cookie"]
payload["cookie"]
r.cookies.get("Set-Cookie")
r.text.get("Set-Cookie")