Enviar datos por POST vía PHP
A modo de recordatorio!
PHP:
-
function post($server, $uri, $port, $vars){
-
$page .= "POST ".$uri." HTTP/1.0\r\n";
-
$page .= "Host: ".$server.":".$port."\r\n";
-
$page .= "Content-Type: application/x-www-form-urlencoded\r\n";
-
$page .= $vars;
-
$protocol=($port==443)?'ssl':'http';
-
-
if (!$fp){
-
}else{
-
$cont="";
-
}
-
return $cont;
-
}
-
}



Comentarios
Deja un comentario