Forum Moderators: coopster
$headers = "POST /path/to/myprocessingform.php HTTP/1.1\r\n";
$headers .= "Host: www.example.com\r\n";
$headers .= "Content-Type: application/x-www-form-urlencoded\r\n";
$headers .= "Content-Length: " . strlen("variable1=$value1&var2=val2") . "\r\n";
$headers .= "Connection: close\r\n\r\n";
$headers .= "variable1=$value1&var2=val2";