cURL / Mailing Lists / curl-library / Single Mail

curl-library

Using POST with curl-- hit a wall.

From: Kenny Pollock <me_at_kennypollock.com>
Date: Sat, 12 Mar 2005 12:02:02 -0500

I'm using:

$postfields = "user=KennyP&pwd=123kenny&always=y&Submit=Login";
$ch = curl_init();
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR,
"/home/everglade/domains/kennypollock.com/test/cookie");
curl_setopt($ch, CURLOPT_COOKIEFILE,
"/home/everglade/domains/kennypollock.com/test/cookie");
curl_setopt($ch, CURLOPT_URL,
"http://accutracking.com/login.php?
p=249042845000&n=KennyP&s=$dateline&e=$dateline");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "$postfields");

curl_exec($ch);
curl_close($ch);
unset($ch);

…but want to use the authentication to goto clients.php, however the
post data must be submitted to login.php.
Can anyone help?

Thanks!
Kenny
Received on 2005-03-12