need help simple php script post back curl
hello,
excuse me, i wrote a code but it returns empty,
xxxxx is username
yyyyy is password
code :
<?php
$params = array(
'handlemail' => 'XXXXXXXX',
'passwd' => 'YYYYYYYY'
);
$curl = curl_init() or die(curl_error());
curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
$submitUrl = "https://www.nic.ir/Login";
curl_setopt($curl, CURLOPT_URL, $submitUrl);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $params);
$result = curl_exec($curl);
echo $result;
curl_close($curl);
?>
could you help me please?
Best Regards
by
1 Reply