def setup_http_session(session, args):
    """Sets the global HTTP settings, such as proxy and headers."""
    if args.http_proxy:
        session.set_option('http-proxy', args.http_proxy)
    if args.https_proxy:
        session.set_option('https-proxy', args.https_proxy)
    if args.http_cookie:
        session.set_option('http-cookies', dict(args.http_cookie))
    if args.http_header:
        session.set_option('http-headers', dict(args.http_header))
    if args.http_query_param:
        session.set_option('http-query-params', dict(args.http_query_param))
    if args.http_ignore_env:
        session.set_option('http-trust-env', False)
    if args.http_no_ssl_verify:
        session.set_option('http-ssl-verify', False)
    if args.http_disable_dh:
        session.set_option('http-disable-dh', True)
    if args.http_ssl_cert:
        session.set_option('http-ssl-cert', args.http_ssl_cert)
    if args.http_ssl_cert_crt_key:
        session.set_option('http-ssl-cert', tuple(args.http_ssl_cert_crt_key))
    if args.http_timeout:
        session.set_option('http-timeout', args.http_timeout)
    if args.http_cookies:
        session.set_option('http-cookies', args.http_cookies)
    if args.http_headers:
        session.set_option('http-headers', args.http_headers)
    if args.http_query_params:
        session.set_option('http-query-params', args.http_query_params)
