Witam. Chce aby dane były wysłane metodą post w CURL'u znalazłem cos takiego ale nie działa mi to niewiem czemu.
<?php
$c = curl_init();
curl_setopt($c, CURLOPT_URL, "http://www.webcron.pl/index.html\");
curl_setopt($c, CURL_POST, 1);
curl_setopt($c, CURLOPT_POSTFIELDS, "username=kubek&password=kubek\");
curl_exec($c);
curl_close($c);
$x = curl_init();
curl_setopt($x, CURLOPT_URL, "http://www.webcron.pl/konto.html\");
curl_setopt($x, CURL_POST, 1);
curl_setopt($x, CURLOPT_POSTFIELDS, "add_points=true\");
curl_exec($x);
curl_close($x);
?>
To jest piwerszy formularz.
<form action=index.html method=POST name=login> <input type=hidden name=login_send value=true> <td><input type=text class=pole_login name=username size=10></td> <td><input type=password class=pole_login name=password size=10></td> <td><input type=submit class=pole_login value="Zaloguj"></td>
Ten post edytował kubek15 12.04.2009, 10:55:25