On Thu, 19 Jun 2003, Alan Olegario wrote:

> I'm trying to log into a site and then pass the same cookies and headers
> that are used for the first site into another site.  Should I just be
> able to do a get to the second site and still maintain the same cookies
> and headers?

No.

> Here's the meat of my code:
[...]
>         $response = $browser->post(
>                 'https://www.firstsite.com/',
>                 [
>                         "USER" => $username,
>                         "PASSWORD" => $password,
[...]
>         $response = $browser->get('https://www.secondsite.com');
>         if ($verbose!=0) {print "RESPONSE\n";}
>         if ($verbose!=0) {print $response->as_string;print "\n";}
> }

If the sites do indeed have different second-level domains (firstsite and
secondsite), then cookies set by the first shouldn't be returned to the
second.

Why do you want to do that?


John

Reply via email to