From c3e0db32d8b79cb4fabf416a46ad03613a33bf80 Mon Sep 17 00:00:00 2001 From: Rim Date: Sat, 4 Jan 2025 11:27:34 -0500 Subject: [PATCH] maint(curl_userInfo.ps1): update curl command - must include cookies.txt file now --- scripts/curl_userInfo.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/curl_userInfo.ps1 b/scripts/curl_userInfo.ps1 index 97d5b38..8265679 100644 --- a/scripts/curl_userInfo.ps1 +++ b/scripts/curl_userInfo.ps1 @@ -1,7 +1,6 @@ $COOKIE_VALUE = "" - $URL = "https://profile.callofduty.com/cod/userInfo/$COOKIE_VALUE" -$USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36" +$USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36" $OUTPUT_FILE = "userInfo.json" -curl -v $URL -H "Cookie: ACT_SSO_COOKIE=$COOKIE_VALUE" -H "User-Agent: $USER_AGENT" -o $OUTPUT_FILE \ No newline at end of file +curl -v "$URL" -H "Cookie: ACT_SSO_COOKIE=$COOKIE_VALUE" -H "User-Agent: $USER_AGENT" -H "Accept: application/json, text/plain, */*" -H "Referer: https://profile.callofduty.com/" -H "Connection: keep-alive" -H "Accept-Language: en-US,en;q=0.9" --cookie-jar cookies.txt --cookie cookies.txt -o $OUTPUT_FILE