def dump_sharepoint_headers(name):
        print ""
        try:
                dump_s = urllib2.urlopen(name)
                print "[+] configured sharepoint version is  : (%s)" %dump_s.info()['microsoftsharepointteamservices']

        except KeyError:
                        print "[-] sharepoint version could not be extracted using HTTP header :  MicrosoftSharepointTeamServices !"

        try:
                dump_f = urllib2.urlopen(name)
                print "[+] sharepoint is configured with load balancing capability : (%s)" %dump_f.info()['x-sharepointhealthscore']

        except KeyError:
               print "[-] sharepoint load balancing ability could not be determined using HTTP header : X-SharepointHealthScore !"


        try:
                dump_g = urllib2.urlopen(name)
                print "[+] sharepoint is configured with explicit diagnosis (GUID based log analysis) purposes : (%s)" %dump_f.info()['sprequestguid']

        except KeyError:
               print "[-] sharepoint diagnostics ability could not be determined using HTTP header : SPRequestGuid !"

        except  urllib2.HTTPError:
                pass

        except httplib.BadStatusLine:
               print "[-] server responds with bad status !"
               pass


# file uploading routine to upload file remotely on frontpage extensions
dataset/ETHPy150Open alias1/sparty/sparty_v_0.1.py/dump_sharepoint_headers/original