HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: Cookie being mirrored as HTML file?
Author: Remke Rutgers
Date: 09/18/2003 16:15
> > I had to turn purging off, and have tried this 
> with 'accept
> > cookies' on and off (above example). What happens is 
> > instead of writing a cookie with the value JSESSIONID=
> > httrack creates an HTML file as the index of the 
> > site after receiving a warning that the index has moved:
> > 4:21:31 Warning:  File has moved from
> > XX.XXX.XXX.XXX/servlets/sfs?> 
> ateway
> > to
> DDD603AD4248DA47B8?> 
> lt/gateway&include=gateway
> Humm, the server seems to be using the parameter zone 
> the path segment (the ; thing) to send a cookie.. weird 
> (standard?)
Not a weird standard. I think both mechanisms are stated in 
the servlet (1.3?) spec.
Tomcat uses both: in the first response for a session it 
sets a cookie AND does url rewriting (the jsession path 
In a subsequent request tomcat checks if a cookie is 
present. If present, that is used as the session 
identifier, if this session is still valid inside tomcat 
(not expired), tomcat will not set the cookie again NOR 
will it try url-rewriting again.
The fact that jsessionid is part of the url BEFORE the 
querystring makes it appear in the filename httrack 
generates. (At least I assume this is the reason, Xavier?)
If you open this file, you will see it is not a cookie 
file, but a normal html file.
> > What am i doing wrong?Nothing.
> Well, the cookie is apparently NOT send through the usual 
> way (a set-cookie header in the http headers) bu using a 
> redirected URL ; which is a bit weird
> You may try to check the server cookie confuguration?> 
It is not weird, it is one of the mechanisms described in 
the servlet spec.
If you are interested, read: 
Check out section 7.1 on Session Tracking Mechanisms.

Reply Create subthread

All articles

Subject Author Date
Cookie being mirrored as HTML file?

09/16/2003 20:44
Re: Cookie being mirrored as HTML file?

09/16/2003 23:07
Re: Cookie being mirrored as HTML file?

09/18/2003 16:15
Re: Cookie being mirrored as HTML file?

09/18/2003 21:02


Created with FORUM 2.0.11