gimme4free
Elite Member
- Oct 22, 2008
- 1,935
- 1,989
I found this on php.net as an example and the user said that it was working for him but it is just spitting back a download prompt for me.
I am sure that this script would be of a lot of use to a lot of coders if somebody could get it working if it is possible:
I am sure that this script would be of a lot of use to a lot of coders if somebody could get it working if it is possible:
Code:
<?php
$host = "www.example.com";
$path = "/path/to/script.php";
$data = "data1=value1&data2=value2";
$data = urlencode($data);
header("POST $path HTTP/1.1\r\n" );
header("Host: $host\r\n" );
header("Content-type: application/x-www-form-urlencoded\r\n" );
header("Content-length: " . strlen($data) . "\r\n" );
header("Connection: close\r\n\r\n" );
header($data);
?>