cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Persistent http connections

From: Sinan <siyisoy_at_netscape.net>
Date: Thu, 22 Jul 2004 11:14:00 +0300

Hi
I use curl to query web pages gladly. But I need a persistent
connection (if available) and execute queries on this connection
successively. What I do now is a loop:
namely
while {
 query
}
.So every time curl connects,fetchs the results sending different data.
How can I make it short?
Is it possible to connect once and query lots of time?
I use simple curl options like
curl_setopt($ch, CURLOPT_POST, 1);
$fil="datatobesend";
curl_setopt($ch, CURLOPT_POSTFIELDS, $fil);
curl_setopt($ch, CURLOPT_COOKIEFILE, "/data/cookie");
curl_setopt($ch, CURLOPT_URL,"http://www.dot.com/query.php");

Thanks
Received on 2004-07-22