| Hi,
I'm trying to download a website with a login form. Have tried different
authentication options (catchurl etc), but can't seem to get anything working.
Saved my cookies from the browser and I can use them to make a successful
request with curl, but it doesn't work with httrack.
Nothing secret in there, so my cookie file looks like this:
# Netscape HTTP Cookie File
.eprints.tktk.ee TRUE / FALSE 0
eprints_session%3Aeprints.tktk.ee 6ebe36973d6dbfa63f05c90364c84e97
.eprints.tktk.ee TRUE / TRUE 0
secure_eprints_session%3Aeprints.tktk.ee
892df3b9caf627cf91b91b27a9ff4276
If I do 'curl
<https://eprints.tktk.ee/id/eprint/3968/1/Sten_Vendik_seletuskiri.pdf> -b
test/cookies.txt --output tmp.pdf' (random file for PoC) it works fine and I
get the file. But 'httrack
<https://eprints.tktk.ee/id/eprint/3968/1/Sten_Vendik_seletuskiri.pdf> -b1
-*logout* -O test -v' gives me an 401 Unauthorized error. I've set chmod 555
on the cookies file, so it wouldn't be overwritten.
What am I doing wrong here?
| |