Hello!
I am not very familiar with the http terminology, what certificate, authentication, method, session, etc are.
I think in many cases, when you login to a website via a form, it creates a cookie based on which you keep your access to the site.
Which of the below (or other?) parameters should I need to specify to make PowerShell Invoke-WebRequest to behave like IE/Edge, i.e. to check and use whatever cookies and authentication has already taken place via the browser?
[-WebSession <WebRequestSession>]
[-SessionVariable <String>]
[-AllowUnencryptedAuthentication]
[-Authentication <WebAuthenticationType>]
[-Credential <PSCredential>]
[-UseDefaultCredentials]
[-CertificateThumbprint <String>]
[-Certificate <X509Certificate>]
[-SkipCertificateCheck]
[-SslProtocol <WebSslProtocol>]
[-Token <SecureString>]
[-Method <WebRequestMethod>]
[-PreserveAuthorizationOnRedirect]
[-SkipHeaderValidation]
Thanks!