HTTrack Website Copier
Free software offline browser - FORUM
Subject: Cookies work with curl, but not with httrack
Author: Andres
Date: 06/07/2021 01:06
 
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?

 
Reply


All articles

Subject Author Date
Cookies work with curl, but not with httrack

06/07/2021 01:06
Re: Cookies work with curl, but not with httrack

07/23/2021 15:36




f

Created with FORUM 2.0.11