Comment 2 for bug 595116

Revision history for this message
Robert Grey (rgrey) wrote :

here is a python script I use to force the error:

import base64, httplib

base64string = base64.encodestring('%s:%s' % ("<uname>", "<password>"))[:-1]
headers = { "Authorization" : "Basic %s" % base64string }
while 1:
    conn = httplib.HTTPSConnection("<host>")
    conn.request("GET", "/dist/test.txt", headers=headers)
    response = conn.getresponse()
    try:
        if response.status != 200:
            print response.getheaders(), response.read()
            break
        else: print "OK"
    finally: conn.close()

hope it helps