Passing string to CURLOPT_COOKIEFILE instead of file-pointer
| From: | Tobias Talltorp | Date: | Mon, 26 Apr 2004 13:25:17 +0000 |
| Subject: | Passing string to CURLOPT_COOKIEFILE instead of file-pointer | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-184633@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");
Any thoughts?
// Tobias