Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/n/a/Nagstamon-HEAD/Nagstamon/Nagstamon/Server/Opsview.py   Nagstamon(Download)
            # http://docs.opsview.org/doku.php?id=opsview3.4:api
            # this is only necessary when accessing the API and expecting a XML answer
            self.HTTPheaders["xml"] = {"Content-Type":"text/xml", "X-Username":self.get_username(), "X-Password":self.get_password()}
 
        # get cookie to access Opsview web interface to access Opsviews Nagios part
        if len(self.Cookie) == 0:
            # put all necessary data into url string
            logindata = urllib.urlencode({"login_username":self.get_username(),\
                             "login_password":self.get_password(),\

src/n/a/Nagstamon-HEAD/Nagstamon/Nagstamon/Server/Ninja.py   Nagstamon(Download)
                # get a Ninja cookie via own method
                self.urlopener.add_handler(urllib2.HTTPDefaultErrorHandler())
                self.urlopener.open(self.login_url, urllib.urlencode({'username': self.get_username(), 'password': self.get_password(), 'csrf_token': self.csrf()}))
 
                if str(self.conf.debug_mode) == "True":

src/n/a/Nagstamon-HEAD/Nagstamon/Nagstamon/Server/Thruk.py   Nagstamon(Download)
                # put all necessary data into url string
                logindata = urllib.urlencode({"login":self.get_username(),\
                                 "password":self.get_password(),\
                                 "submit":"Login"})
                # get cookie from login page via url retrieving as with other urls
        # put all necessary data into url string
        logindata = urllib.urlencode({"login":self.get_username(),\
                                 "password":self.get_password(),\
                                 "submit":"Login"})
        # get cookie from login page via url retrieving as with other urls

src/n/a/Nagstamon-HEAD/Nagstamon/Nagstamon/Server/Multisite.py   Nagstamon(Download)
        # put all necessary data into url string
        logindata = urllib.urlencode({"_username":self.get_username(),\
                         "_password":self.get_password(),\
                         "_login":"1",\
                         "_origtarget": "",\