hai all,
i wrote some codes to test how proxies work.(one
client) this worked fine but when the server sends
cookies, error is shown telling that the browser is
not accepting cookies.why?
,
use HTTP::Daemon;
use LWP::UserAgent;
my $d=new HTTP::Daemon
LocalAddr => '192.168.2.254',
LocalPort => 8080;
$ua=new LWP::UserAgent;
while (my $c = $d->accept)
{
print "connected\n";
while (my $r = $c->get_request)
{
print $r->as_string;
my $res=$ua->request($r);
$c->send_response($res);
}
$c->close;
}
Thank You.
__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]