File size: 535 Bytes
af1d8cd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import requests

def test_url():
    # Attempting to reconstruct the truncated URL from logs just in case, but let's try to list dir again to be sure
    # Actually, I'll update check_files.py to dumping the FULL filename cleanly first.
    pass
    print(f"Testing URL: {url}")
    try:
        res = requests.head(url)
        print(f"Status Code: {res.status_code}")
        print(f"Content Type: {res.headers.get('content-type')}")
    except Exception as e:
        print(f"Error: {e}")

if __name__ == "__main__":
    test_url()