def add_dict_to_cookiejar(cj, cookie_dict):

    for k, v in cookie_dict.items():

        cookie = cookielib.Cookie(
            version=0,
            name=k,
            value=v,
            port=None,
            port_specified=False,
            domain='',
            domain_specified=False,
            domain_initial_dot=False,
            path='/',
            path_specified=True,
            secure=False,
            expires=None,
            discard=True,
            comment=None,
            comment_url=None,
            rest={'HttpOnly': None},
            rfc2109=False
        )

        # add cookie to cookiejar
        cj.set_cookie(cookie)

    return cj
Amazon ELB stores the IP in the HTTP_X_FORWARDED_FOR META attribute.
dataset/ETHPy150Open bububa/pyTOP/pyTOP/packages/requests/utils.py/add_dict_to_cookiejar--crossover with--dataset/ETHPy150Open ulule/django-safety/safety/resolvers.py/x_forwarded_ip