Link to home
Start Free TrialLog in
Avatar of gegerisme
gegerismeFlag for United States of America

asked on

retrieve image from password protected https website

hi everybody,
i'm trying to download an image from a password protected website.
i used wget like this command
wget --no-check-certificate --user=admin
--password=pswd "https://domain.website.com/images/pic1.jpg"
but instead of getting the actual image download i only get the text image of the html code of the download page.
Can someone please help or guide me to the right direction?
ASKER CERTIFIED SOLUTION
Avatar of mccarl
mccarl
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gegerisme

ASKER

thanks for the response mccarl.
i tried the 2 steps process described in the link( wget --quiet --O --no-check-certificate --user=admin --password=admin 'url' then wget --no-check-certificate --save-cookies cookies.txt --post-data --cookies=on --keep-session-cookies --post-data='xx' but it didn't work...
any suggestions? is there something i'm doing wrong?