Posted: Fri Apr 06, 2007 8:55 pm
I already told you 
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
$cookie_jar = tempnam('/tmp','cookie');
$cookie = "";
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, "url/login.php");
curl_setopt ($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, VERBOSE, 1);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_jar);
curl_setopt($ch, CURLOPT_POSTFIELDS, "myPostFields");
curl_exec($ch);
curl_close($ch);
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, "url/create-mailbox.php");
curl_setopt ($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, VERBOSE, 1);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_jar);
curl_setopt($ch, CURLOPT_COOKIE, $cookie);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "myPostFields");
$response = curl_exec($ch);
curl_close($ch);HTTP/1.1 200 OK
Date: Sat, 07 Apr 2007 19:31:05 GMT
Server: Apache/1.3.37 (Unix) PHP/5.2.0 with Suhosin-Patch mod_ssl/2.8.28 OpenSSL/0.9.7e-p1
X-Powered-By: PHP/5.2.0
Expires: Sun, 16 Mar 2003 05:00:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Last-Modified: Sat, 07 Apr 2007 19:31:06 GMT
Cache-Control: post-check=0, pre-check=0
Transfer-Encoding: chunked
Content-Type: text/html