Posted by Gary Quiring on 05/12/05 17:20
I have a vendor sending me a text file using POST. I have a PHP program
receiving the data that works. I need to in the same stream return an answer
via POST. How do I send that POST in the same stream?
A snip from the code for the output portion:
$LINKOUT = implode('', file($LINKFILE . '.out'));
$LOUT = array(
'http'=>array(
'method'=>"POST",
'header'=>"Content-type: application/x-www-form-urlencoded\r\n" .
"Content-length: " . strlen("$LINKOUT"),
'content'=>"$LINKOUT"
)
);
$context = stream_context_create($LOUT);
Thanks
Gary Quiring
Navigation:
[Reply to this message]
|