Normalde guzzle kullanıyorum ama, aşağıda ki kod da neredeyse aynı ve bundan da aynı hatayı alıyorum.
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "username=*****&password=*****",
CURLOPT_HTTPHEADER => array(
"cache-control: no-cache",
"content-type: application/x-www-form-urlencoded"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
--R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 14:13:53 -->-> Daha önceki mesaj 14:12:27 --
Bu arada istek postman üzerinden çalışıyor.