File_get_contents ile HTTP istekleri, yanıt kodunu alıyor
POST istekleri yapmak için file_get_contentsile birlikte kullanmaya çalışıyorum stream_context_create. Şimdiye kadarki kodum: $options = array('http' => array( 'method' => 'POST', 'content' => $data, 'header' => "Content-Type: text/plain\r\n" . "Content-Length: " . strlen($data) . "\r\n" )); $context = stream_context_create($options); $response = file_get_contents($url, false, $context); İyi çalışıyor, ancak bir HTTP hatası oluştuğunda …