Re: fsockopen & cookies

From: Date: Tue, 13 Jun 2000 22:13:12 +0000
Subject: Re: fsockopen & cookies
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-1760@lists.php.net to get a copy of this message
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

« previous php.general (#1760) next »