PDA

Просмотр полной версии : Помогите с CURL


Buffalon
16.04.2010, 15:35
Как правильно ??
<?php
// HTTP authentication
$url = "http://www.t35.com/free-web-hosting/signup/index.html .";
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1); // set POST method
curl_setopt($ch, CURLOPT_POSTFIELDS, "username=sef1efsgsg&password=sessgsges&firstname=sefsef&lastname=sege&email=efef@sef.ru&country=RU&TOS=checked&http://www.t35.com/images/i_submit2.jpg"); // add POST fields

$result = curl_exec($ch);
curl_close($ch);
echo $result;
?>

Buffalon
16.04.2010, 15:44
ИЛи где почитать пдоробную информацию про CURL