попробуйте это для basi c запрос curl
$data = array('email' => 'value1', 'password' => 'value2');
$contentType = 'application/x-www-form-urlencoded';
$HTTPCustomHeaders[] = 'Content-Type: '.trim($contentType);
$runfile = 'example.com';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $runfile);
curl_setopt($ch, CURLOPT_HTTPHEADER, $HTTPCustomHeaders);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$content = curl_exec ($ch);
curl_close ($ch);
echo $content