代码有效,但有一些错误消息,我想删除它 第29行
file_get_contents():假设application / x-www-form-urlencoded
未指定Content-type编辑 - PHP:
<?php
$postdata = http_build_query(
array(
'name'=>'test',
'email'=>'test@gmail.com',
'remail'=>'test@gmail.com',
'password'=>'12341234',
'repassword'=>'12341234',
'phone'=>'12345678',
'phonearea'=>'+1',
'referral'=>'',
'captcha'=>'',
'fingerprint'=>'',
'flashkey'=>'',
'storagekey'=>''
));
$opts = array('http'=>
array(
'proxy'=>"",
'method'=>"POST",
'header'=>"Referer: https://israel.tv/he/registration".
"User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:51.0) Gecko/20100101 Firefox/51.0",
'content' => $postdata
));
$context = stream_context_create($opts);
$result = file_get_contents('https://israel.tv/he/register', false, $context);
echo $result;