I got some cookies from my browser where I'm well authenticated into a website. I've tried to give them to wget
and make it download some internal pages, but all it downloads is authentication page
wget --load-cookies $path/cookies.txt --show-progress --no-check-certificate -p -v -U '$userAgentString' https://$url
How to get the target page and not authentication page?
"$path/cookies.txt"
,"https://$url"
, and-U "$userAgentString"
Directory paths & URLs often contain spaces and other problematic shell metacharacters, so they need to be quoted. 2. Are you sure that "$path/cookies.txt" exists and contains a valid authorisation cookie(s)? what made that file / where did it come from?