Cookies Question

Derek J. Balling (dballing@yahoo-inc.com)
Wed, 15 Dec 1999 10:33:16 -0800


OK, another hypothetical that is sorta biting me....

A cookie is sent to the client, to be returned with any request to 
subdomain.domain.com.

The server's main name is "foo.subdomain.domain.com". If you request 
"foo.subdomain.domain.com", then you send the cookie. Fairly simple.

BUT, what if you're checking a bunch of servers, for example, you have:

foo.subdomain		A 	192.168.0.5
			A	192.168.0.6

And you want to step through those servers, but those servers aren't named 
the way you want, they're named:

foo1.domain.com
foo2.domain.com

Well, you can't send a request to foo1.domain.com, because the cookie won't 
get sent, but you can't send a request to foo.subdomain.domain.com, because 
you don't know which server you'll get.

Is there any way to tell LWP to "attach the cookies to $request, but do it 
as though you were connecting to $some_other_url and not to $request->url";

I thought about constructing the entire request with the "public" URL, and 
then changing it at the last second (after cookie_jar attachment) before 
actually requesting it, but I'm not sure that's the best answer...

Any thoughts?


D


-----------------------------------------------------------------------
Derek Balling                                              408-530-5062
Technical Yahoo                                          Do You Yahoo!?