HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: Password protected sites - command line linux
Author: Martin Wetterstedt
Date: 08/14/2007 13:11
 
I've managed to get it working!

The site I was trying to download used a cookie - PHPSESSID. I logged in,
looked at the cookie from within firefox and coopied the information to
cookie.txt (I guess that what was happening as I tried to use the --catchurl
was that the cookie information was written to the cookie.txt-file in the
directory httrack was running from). I the tried, but it didn't work. So I
thought that the site might check if it's the same browser coming back - so I
included that option. All in all, the commande line read:
httrack <http://website> -logout.php -b1 -F "Mozilla/5.0 (X11; U; Linux i686;
en-US; rv:1.8.1.6) Gecko/20061201 Firefox/2.0.0.6 (Ubuntu-feisty)"

-logout.php Do not follow the logout link
-b1 use the cookie in cookie.txt
-F use the same info for useragent as the browser I logged in with. 
 
 
Reply Create subthread


All articles

Subject Author Date
Password protected sites - command line linux

08/14/2007 11:39
Re: Password protected sites - command line linux

08/14/2007 13:11
Re: Password protected sites - command line linux

08/14/2007 13:41




4

Created with FORUM 2.0.11