"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.

Regards,
Gisle

Reply via email to