I would like to know on how to retrieve cookies on sample 2.
$URL = Invoke-WebRequest http://www.google.com
$URL = “http://www.google.com”
(Invoke-WebRequest -Uri $URL -SessionVariable Y -UseBasicParsing).Content | Out-File -FilePath C:\TEMP.txt
$URL.baseresponse.cookies, which show nothing
Does anyone have any suggestions?
Thanks in advance for any suggestions