repose for GET
<hr> Get request<br>Array
(
[name] => ambiorix
[lastname] => rodriguez
)
reponse for post
curl -d"name=ambiorix&lastname=rodriguez" http://45.32.165.238/curl.php
Post request<br>Array
(
[name] => ambiorix
[lastname] => rodriguez
)
sample code
<?php
if($_POST){
echo " Post request<br>";
print_r($_POST);
}
echo "<hr>";
if($_GET){
echo " Get request<br>";
print_r($_GET);
}
?>
No hay comentarios:
Publicar un comentario