mirror of
https://github.com/FAUSheppy/config
synced 2025-12-10 08:38:32 +01:00
various changes
This commit is contained in:
11
herbstluftwm/test_cal.py
Normal file
11
herbstluftwm/test_cal.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import urllib3
|
||||
import socket
|
||||
|
||||
http = urllib3.PoolManager()
|
||||
socket.setdefaulttimeout(5)
|
||||
url = 'https://squarez.fauiwg.de:7001/radicale/testuser/cal.ics/'
|
||||
headers = urllib3.util.make_headers(basic_auth='testuser:test')
|
||||
r = http.request('GET', url, headers=headers)
|
||||
f = open(test.log,'w')
|
||||
f.write(r)
|
||||
f.close()
|
||||
Reference in New Issue
Block a user