1 2 3 4 5 6 7 |
#Crear el fichero PHP con el contenido: #<?php echo htmlspecialchars($_GET['nombre']); ?> tiene <?php echo (int)$_GET['edad']; ?> años. $postParams = @{nombre='Juan';edad='34'} $web=Invoke-WebRequest -Uri 'https://localhost/exampleget.php' -Method Get -Body $postParams #$web=Invoke-WebRequest -Uri 'https://localhost/exampleget.php?nombre=Juan&edad=34' $web.content |