
03.09.2009, 01:10
|
|
Участник форума
Регистрация: 12.03.2008
Сообщений: 159
Провел на форуме: 912928
Репутация:
137
|
|
PHP код:
function wtf(){
$postvars="param=wtf";
send();
}
function ololo(){
$postvars="param=ololo";
send();
}
wtf();
ololo();
function send(){
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $host);
curl_setopt($c, CURLOPT_HEADER, 1);
curl_setopt($c, CURLOPT_POST, 1);
curl_setopt($c, CURLOPT_POSTFIELDS, $postvars);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
$body = curl_exec($c);
curl_close($c);
echo $body;
}
?>
Не отправляет. ?
|
|
|