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

-- 
ssl "error reading the headers"
https://bugs.launchpad.net/bugs/595116
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to apache2 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to