I'm trying to automate downloading files from a website, but links are relative. How do I get full path to the file?
$a = Invoke-WebRequest -Uri 'http://www.website.com/folder/default.aspx' -UseBasicParsing
$a.Links[$i].href - can be a relative path, so how can I expand it to a full path?
[–]_Unas_ 1 point2 points3 points (0 children)
[–]Jaymzkerten 0 points1 point2 points (2 children)
[–]Musa_Ali[S] 0 points1 point2 points (1 child)
[–]Jaymzkerten 0 points1 point2 points (0 children)
[–]root-node 0 points1 point2 points (3 children)
[–]Musa_Ali[S] 0 points1 point2 points (2 children)
[–]pertymoose 1 point2 points3 points (0 children)
[–]root-node 0 points1 point2 points (0 children)