You need to assign cookies at the entrance to the site.
{ "domain": ".csgcom", "expirationDate": 1582ууу116537.560714, "hostOnly": false, "httpOnly": true, "name": "__cfduid", "path": "/", "sameSite": "no_restriction", "secure": true, "session": false, "storeId": "0", "value": "dee68вп52584f00eаж5пк12bc1550580537", "id": 1 }, { "domain": ".csgopositive.com", "expirationDate": 1613749578, "hostOnly": false, "httpOnly": false, "name": "_ga", "path": "/", "sameSite": "no_restriction", "secure": false, "session": false, "storeId": "0", "value": "GA1.п580547", "id": 2и }, куки в формате JSON
I want to send them at the entrance to the site using the jsoup library
Document doc = Jsoup.connect("https://csgopositive.com/") .userAgent("Chrome/4.0.249.0 Safari/532.5") .referrer("http://www.google.com") .cookies() .get();
but I do not know how to put them in this method. Where to save them and how to pass them to cookies