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'=>"Cont ent-type: application/x-www-form-urlencoded\r\n" .
"Content-length: " . strlen("$LINKOU T"),
'content'=>"$LI NKOUT"
)
);
$context = stream_context_ create($LOUT);
Thanks
Gary Quiring
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'=>"Cont ent-type: application/x-www-form-urlencoded\r\n" .
"Content-length: " . strlen("$LINKOU T"),
'content'=>"$LI NKOUT"
)
);
$context = stream_context_ create($LOUT);
Thanks
Gary Quiring
Comment