Postman sees more cookies than python request

When sending a GET request with a postman, I see the following cookies. enter image description here By doing the same with the python request module, I am not getting this CP cookie.

import requests
with requests.Session() as session:
    response = session.post('https://wikipedia.org')
    cookies = session.cookies.get_dict()
    print(cookies)

Conclusion:

{'WMF-Last-Access-Global': '12-Sep-2017', 'GeoIP': 'XXXXXX', 'WMF-Last-Access': '12-Sep-2017'}

Why is that? Is there a way to get this cookie using python?

+4
source share

Source: https://habr.com/ru/post/1685510/


All Articles