Re: fsockopen & cookies

From: Date: Tue, 13 Jun 2000 21:22:59 +0000
Subject: Re: fsockopen & cookies
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-1762@lists.php.net to get a copy of this message
Have a look at http://developer.netscape.com:80/docs/manuals/js/client/jsref/cookies.htm this document has all you need to know. Ben 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 { > fputs($fp,"GET / HTTP/1.0\n\n"); > } > > thnks moshe. > > > Ben Peter wrote: > > > moshe, > > > > it's all up to the client to send the cookie when it sees that a request > > goes to a URL it has a cookie for. Say, server www.foo.bar has set you a > > cookie 'cook=100', it is up to you to store that cookie somewhere and send > > it along next time you send a request to that server. > > > > This would include expiration checks and URL checks (to which servers will > > a cookie be sent, will it be sent on any request to a server or does it > > only belong to a specific subdirectory, etc...) > > > > Ben > > > -- Benjamin Peter Zentropy Partners GmbH ph. +49-69-96244-395 pax +49-69-96244-244 http://www.zentropypartners.com "Integrate the building and marketing of digital businesses"

« previous php.general (#1762) next »