Passing string to CURLOPT_COOKIEFILE instead of file-pointer

From: Date: Mon, 26 Apr 2004 13:42:26 +0000
Subject: Passing string to CURLOPT_COOKIEFILE instead of file-pointer
Groups: php.general 
Request: Send a blank email to php-general+get-184636@lists.php.net to get a copy of this message
I want to store the headers for CURLOPT_COOKIEFILE in a database instead of a file. Is there any way I can pass the headers as a string instead of a "file-pointer"? I want: $stringWithHeaders = databaseResult... curl_setopt($ch, CURLOPT_COOKIEFILE, $stringWithHeaders) Instead of: curl_setopt($ch, CURLOPT_COOKIEFILE, "cookieHeaders.txt"); Also, what does CURLOPT_COOKIEFILE do? There is no mension of in the manual... Any thoughts? // Tobias

« previous php.general (#184636) next »