Gio y Juanfran:
Yo llegé a montarle un servidor Web al PIC. De hecho incluso se podían encender o apagar los leds o activar los releses desde un navegador de internet.

El primero al que lo vi hacerlo y de él lo aprendí todo fue al maestro Manofwar en su hilo
Servidor Web con PIC16F84Cuando atacas un EM202 por el puerto 80, el estándar del servicio HTTP, recibes en la USART del PIC una cabecera del estilo:
"GET / HTTP/1.1" + 0x0D + 0x0A
Esto significa que el explorador de Internet te esta pidiendo la página index.htm
O si recibes algo así como:
"GET /otherpage.htm HTTP/1.1" + 0x0D + 0x0A
es que te están pidiendo la página otherpage.htm
Entonces tu contestas algo así como:
"HTTP/1.0 200" + 0x0D + 0x0A
"Content-Type: text/html"+ 0x0D + 0x0A
"Connection: keep-alive"+ 0x0D + 0x0A
"Content-Length: 356"+ 0x0D + 0x0A
"<html>"+ 0x0D + 0x0A
"<head>"+ 0x0D + 0x0A
"<title>Mi pagina</title>"+ 0x0D + 0x0A
"</head>"+ 0x0D + 0x0A
"<body>"+ 0x0D + 0x0A
"<p>Hello world</p>"+ 0x0D + 0x0A
"</body>"+ 0x0D + 0x0A
"</html>"+ 0x0D + 0x0A
Y tendrás todo un servidor web en tu PIC.
Así de fácil.

