Re: fsockopen & cookies

From: Date: Wed, 14 Jun 2000 00:22:22 +0000
Subject: Re: fsockopen & cookies
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-1788@lists.php.net to get a copy of this message
Hi moshe! On Wed, 14 Jun 2000, moshe wrote: > thanks Ben. > > can u exem if please for exemple: > i have cookie - > ssuid=1l1PM0000ec00047ekqqa49162; path= /; > and want send it to www.php.net > > where it's need to be combined this request: > > $fp = fsockopen("www.php.net", 80, &$errno, &$errstr, 30); > if(!$fp) { > echo "$errstr ($errno)<br>\n"; > } else { /* here */ - fputs($fp,"GET / HTTP/1.0\n\n"); + fputs ($fp, "GET / HTTP/1.0\n"); + fputs ($fp, "Cookie: ssuid=1344[...]\n\n"); The easiest way to figure out is to have a page setting a cookie and then check it w/ phpinfo() and looking at sent headers. -- teodor

« previous php.general (#1788) next »