def register_ca(status='<STR_LIT>'):
<EOL>if config()['<STR_LIT>']['<STR_LIT>']:<EOL><INDENT>return<EOL><DEDENT>params = [('<STR_LIT:address>', config()['<STR_LIT>']['<STR_LIT:url>']), ('<STR_LIT:state>', status)]<EOL>name = urlquote(config()['<STR_LIT>']['<STR_LIT:name>'].encode('<STR_LIT:utf-8>'), safe='<STR_LIT>')<EOL>url = '<STR_LIT>' % (config()['<STR_LIT>'][<NUM_LIT:0>], name)<EOL>try:<EOL><INDENT>response = http_request(url, params).decode('<STR_LIT:utf-8>')<EOL>if response:<EOL><INDENT>logger.info(response)<EOL><DEDENT><DEDENT>except pycurl.error as e:<EOL><INDENT>logger.warning('<STR_LIT>' % (status, e))<EOL><DEDENT>
Register this capture agent at the Matterhorn admin server so that it
    shows up in the admin interface.

    :param address: Address of the capture agent web ui
    :param status: Current status of the capture agent