5
प्रतिक्रिया कोड प्राप्त करते हुए, file_get_contents के साथ HTTP अनुरोध
मैं POST अनुरोध करने के लिए file_get_contentsएक साथ उपयोग करने का प्रयास कर रहा हूं stream_context_create। मेरा कोड अब तक: $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, …