Re: [soaplite] cookie problems
This has for so many people been a point of confusion about cookies... and not just for SOAP::Lite, but for web developers in general.
According to Netscape's Cookie specification (http://wp.netscape.com/newsref/std/cookie_spec.html), the domain a cookie is appied to MUST have at least two decimals within it.
Only hosts within the specified domain can set a cookie for a domain and domains must have at least two (2) or three (3) periods in them to prevent domains of the form: ".com", ".edu", and "va.us". Any domain that fails within one of the seven special top level domains listed below only require two periods. Any other domain requires at least three. The seven special top level domains are: "COM", "EDU", "NET", "ORG", "GOV", "MIL", and "INT".
Anyway - that is why some cookies work and others don't.
Eric Freed wrote:
my $endpoint = 'http://machinename/test';
will not attach a cookie, but :
my $endpoint = 'http://machinename.domain.com/test';
I don't know why that is, and I suspect it is a HTTP::Cookies thing and
not SOAP::Lite, but thanks
On Wed, 2004-02-25 at 14:59, Eric Freed wrote:
> I actually already found your examples (via Google), but they have not
> helped me (or they have not helped me with *this* problem, they were
> helpful otherwise).
On Wed, 2004-02-25 at 14:49, Alasdair Allan wrote:
> > I am having problems either sending or receiving cookies with
> > SOAP::Lite, but I don't know where the problem is.
> Have a look at my example cookie code here
Eric Freed <efreed@...>