Anonymous user
HTTPS/Authenticated: Difference between revisions
→{{header|Python}}: Adding in sample with Requests
m (→{{header|Visual Basic}}: version info and optional proxy support added) |
(→{{header|Python}}: Adding in sample with Requests) |
||
Line 411:
response = br.submit()
print response.read()</lang>
{{libheader|Requests}}
{{works with|Python|2.7, 3.4–3.7}}
<lang python>import requests
username = "user"
password = "pass"
url = "https://www.example.com"
response = requests.get(url, auth=(username, password)
print(response.text)</lang>
=={{header|Racket}}==
|