Get your
own Python
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
import requests url = 'https://w3.p2hp.com/python/demopage.php' #use the 'auth' parameter to send requests with HTTP Basic Auth: x = requests.head(url, auth = ('user', 'pass')) print(x.status_code)
200