Merhaba arkadaşlar,
PHP CURL ile post gönderiyorum. sayfada işlem başlıyor. Fakat curl u sabit tutamıyorum orada. 10 saniye sürmeden bağlantısını kesiyor. 10 Dakikalık bağlantı nasıl yapabilirim ? yada 1 dakikalık ?
PHP CURL ile post gönderiyorum. sayfada işlem başlıyor. Fakat curl u sabit tutamıyorum orada. 10 saniye sürmeden bağlantısını kesiyor. 10 Dakikalık bağlantı nasıl yapabilirim ? yada 1 dakikalık ?
Kod:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$strUrl);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $this->headers);
curl_setopt($ch, CURLOPT_USERAGENT, $this->user_agent);
curl_setopt($ch, CURLOPT_POSTFIELDS, $arrPostData);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_COOKIE, $this->cookies);
$result = curl_exec($ch);