HTTPS/Authenticated: Difference between revisions

Content added Content deleted
m (→‎{{header|Visual Basic}}: version info and optional proxy support added)
(→‎{{header|Python}}: Adding in sample with Requests)
Line 411: Line 411:
response = br.submit()
response = br.submit()
print response.read()</lang>
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}}==
=={{header|Racket}}==