Closed osbolab closed 13 years ago
conn = HTTPConnection('api.openkeyval.org:80') conn.request('HEAD', '/hello') res = conn.getresponse()
400 Bad Request [('date', 'Fri, 05 Nov 2010 18:39:20 GMT'), ('connection', 'close'), ('x-powered-by', 'PHP/5.2.6-1+lenny9'), ('content-type', ''), ('server', 'Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch')]
Not sure if this is entirely necessary, but perhaps to check if a key exists without downloading it?
Implemented with 4858099f14ceb467e1517ef03176ada4615da8c9
conn = HTTPConnection('api.openkeyval.org:80') conn.request('HEAD', '/hello') res = conn.getresponse()
400 Bad Request [('date', 'Fri, 05 Nov 2010 18:39:20 GMT'), ('connection', 'close'), ('x-powered-by', 'PHP/5.2.6-1+lenny9'), ('content-type', ''), ('server', 'Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch')]
Not sure if this is entirely necessary, but perhaps to check if a key exists without downloading it?