Get your
own Python
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
import requests url = 'https://w3.p2hp.com/images/pulpit.jpg' #allow the response to be streamed by setting the 'stream' parameter to True: x = requests.head(url, stream=True) print(x.status_code)
200