I want to send Important data to another site with post request in php and concurrent redirect to this site
If I use html <form>
for this issue, user can stop process and change data
in curl and other methods redirect to url is impossible.
I found this snipped code :
header("POST $path HTTP/1.1\r\n" );
header("Host: $host\r\n" );
header("Content-type: application/x-www-form-urlencoded; charset=UTF-8\r\n"
);
header("Content-length: " . strlen($data) . "\r\n" );
header("Connection: close\r\n\r\n" );
header($data);
But when run this code, give me file for save like force download and post header not send
I cant use html <form>
for this actionو Because user can change value of form fields
Hope my question is clear
Thank you
"; $form .= "
– user3754884 Jun 18 '19 at 12:29