Laboratorio #1 - Protocolo HTTP

Teoria necesaria para el laboratorio:
 

Requerimientos para el laboratorio:

- Apache o Nginx
- Php

Actualizando los repositorios:

sudo apt-get update


Instalando Apache:

sudo apt-get install apache2

Instalando el PHP:

sudo apt install php libapache2-mod-php

Iniciando el Servicio:

sudo service apache2 start

Los Ficheros se deben guardar en el directorio web, que por defecto es /var/www/html/.

Ficheros para el laboratorio:

Fichero: get.php
Fichero: post.php

Ejercicios:


1. Realizar un HTTP REQUEST metodo GET usando netcat.
2. Realizar un HTTP REQUEST metodo GET y obtener el body del HTTP RESPONSE usando wget.
3. Realizar un HTTP REQUEST metodo POST y obtener el body del HTTP RESPONSE usando curl.
4. Realizar un HTTP REQUEST metodo GET y obtener el header del HTTP RESPONSE usando HEAD.

Solucionario del laboratorio en el siguiente enlace: https://youtu.be/9rG-gCbiruA

Comentarios

Publicar un comentario