Cookies
How MySiga knows you are logged and keeps communication with Siga 3?
How to get a cookie?
set-cookie: PHPSESSID=6e30936b126fc2f1f42c29295d5199b3; path=/
set-cookie: challenge=1263705899640cc28118898; path=/How to send the cookie back?
curl --url https://mysiga.laravieira.me/load --cookie 'PHPSESSID=6e30936b126fc2f1f42c29295d5199b3; challenge=1263705899640cc28118898'$headers = array(
'Cookie: PHPSESSID=6e30936b126fc2f1f42c29295d5199b3; challenge=1263705899640cc28118898'
);
$request = curl_init('https://mysiga.laravieira.me/load');
curl_setopt($request, CURLOPT_HTTPHEADER, $headers);
curl_setopt($request, CURLOPT_FOLLOWLOCATION, true);
curl_exec($request);import requests
from requests.structures import CaseInsensitiveDict
headers = CaseInsensitiveDict()
headers["Cookie"] = "PHPSESSID=6e30936b126fc2f1f42c29295d5199b3; challenge=1263705899640cc28118898"
requests.get("https://mysiga.laravieira.me/load", headers=headers)Last updated