为什么我无法获取会话 cookie?

Why I'm not able to get session cookies?

import requests

with requests.session() as c:
    res = c.get('https://onlineedlreg.dotm.gov.np/dlNewRegHome', )
login_data ={'citizenshipID': '269',
             'statusType': 'NEWLICENSE'}
response = c.post("https://onlineedlreg.dotm.gov.np/dlNewRegHome",
                  data=login_data,)
r = c.get("https://onlineedlreg.dotm.gov.np/newDlApplicationEntry_.action")
print(res.cookies)
print(response.cookies)
print(r.cookies)

我想我应该得到一些用于响应和 r 变量的 cookie,但我没有得到。可能是什么问题呢。 代码给出以下输出:

<RequestsCookieJar[<Cookie JSESSIONID=B70AD6C7E6780768127766637046E760 for onlineedlreg.dotm.gov.np/>]>
<RequestsCookieJar[]>
<RequestsCookieJar[]>

Response.cookies only includes the cookies sent in the response. If you want the session cookies, use Session.cookies:

with requests.session() as c:
    res = c.get('https://onlineedlreg.dotm.gov.np/dlNewRegHome', )
    login_data ={'citizenshipID': '269',
                 'statusType': 'NEWLICENSE'}
    response = c.post("https://onlineedlreg.dotm.gov.np/dlNewRegHome",
                      data=login_data,)
    print(c.cookies)