'Parse options from [http] section
@param config: ConfigParser object - a config with [http] section'

def __init__(self, config):

    self.connectTimeout = config.getint('http', 'connect_timeout')
    self.readTimeout = config.getint('http', 'read_timeout')
    self.redirectDepth = config.getint('http', 'redirect_depth')
    self.userAgent = None
    self.curlVerbose = False
    self.sslVersion = pycurl.SSLVERSION_DEFAULT
    self.useSubprocess = True
    self.staticCAPath = None
    self.cipherList = self._DEFAULT_CIPHERLIST
    if config.has_option('http', 'user_agent'):
        self.userAgent = config.get('http', 'user_agent')
    if config.has_option('http', 'curl_verbose'):
        self.curlVerbose = config.getboolean('http', 'curl_verbose')
    if config.has_option('http', 'fetch_in_subprocess'):
        self.useSubprocess = config.getboolean('http', 'fetch_in_subprocess')
    if config.has_option('http', 'cipherList'):
        self.cipherList = config.get('http', 'cipherList')
    if config.has_option('http', 'ssl_version'):
        versionStr = config.get('http', 'ssl_version')
        try:
            self.sslVersion = getattr(pycurl, ('SSLVERSION_' + versionStr))
        except AttributeError:
            raise ValueError(("SSL    version    '%s'    specified    in    config    is    unsupported." % versionStr))
    if config.has_option('http', 'static_ca_path'):
        self.staticCAPath = config.get('http', 'static_ca_path')
