On 15 May 2002, at 7:04, Gisle Aas wrote: > "Luuk de Boer" <[EMAIL PROTECTED]> writes: > > > I am busy making a program to get everything from a website > > which is using cookies. When I use $ua->cookie_jar($cookie_jar); he > > picks up the cookie I get (sessionid) places it in the next header. > > That's working fine but the syntax is completely different as normal > > browsers are doing. When do above the header I get is: Cookie: > > $Version=1; JSESSIONID="iibuorkp41.JS11"; $Path="/memberarea" > > > > and when I do the some stuff with mozilla or IE 6.0 or something > > else I get: Cookie: JSESSIONID=8szullke51.JS13 > > > > only the way the browser is using is working on that website. > > What are the Set-Cookie (and Set-Cookie2) headers that are sent from > the server in this case? What version of LWP are you using? Also a > dump of $ua->cookie_jar->as_string would be nice to see. > > The first format (with $Version=1 etc) is only supposed to be returned > if the server says it accept that kind of cookies, by using the > Set-Cookie2 header. >
Here the set cookie headers: Set-Cookie: JSESSIONID=qqxmisgbf1.JS12;Path=/memberarea Set-Cookie2: JSESSIONID=qqxmisgbf1.JS12;Version=1;Discard;Path="/member area" version I am using is: LWP.pm = 5.53 and a dump of the cookie as_string : Set-Cookie3: JSESSIONID="0ga3rtgc91.JS12"; path="/memberarea"; domain="www.woonkrant.nl"; path_spec; discard; version=1 regards, Luuk
