I am trying to get a “direct download” link from a web page using Invoke-WebRequest cmdlet.
The problem is that the website uses a session management cookie to produce the “direct download” link and I cannot reach this link.
The web page has kind of “download now” button that redirects you to another (“thank you page”) page and then the download starts automatically.
How can I get this direct download link?? Can anyone help?
PS: I searched for the download link withing the “Links” property of the web request but it is not there. I guess that something can be done using the cookie info that I get using the session variable but I cannot reach the direct download link.
Thank you all in advance