Curso-lenguaje-python/python-ofensivo/08_librerias/03_requests_06_cookie.py

12 lines
185 B
Python
Raw Normal View History

2024-01-14 00:15:52 +01:00
#!/usr/bin/env python3
import requests
url = 'https://httpbin.org/cookies'
cookies = dict(cookies_are="working")
response = requests.get(url, cookies=cookies)
print(response.text)