PHP: методы POST и GET

<?php
$api_url = 'http://api.open-notify.org/astros.json';
$json_data = file_get_contents($api_url);
$response_data = json_decode($json_data);
print_r($response_data);
$people = $response_data->people;
$n = 1;
foreach ($people as $cosmo) {
  echo $n . " имя: " . $cosmo->name;
  echo "<br>";
  echo "космический корабль или станция: " . $cosmo->craft;
  echo "<br><br>";
  $n = $n + 1;
}
?>