Siteme uzak bir web sayfasına, bazı veri göndermek istiyorum. Aslında formu gizli değişkenler ile elde edilebilir. ancak güvenlik nedeniyle, i başlığında yazılan değişkenler olarak ayarlamak ister ve o web sayfasına göndermek. ben bu kodu kullanabilirsiniz
$post_data = 'var1=123&var2=456';
$content_length = strlen($post_data);
header('POST http://localhost/testing/test.php HTTP/1.1');
header('Host: localhost');
header('Connection: close');
header('Content-type: application/x-www-form-urlencoded');
header('Content-length: ' . $content_length);
header($post_data);
but my code doesn't work properly. help me...