Agmen, can you help me a little more. I've been trying get the web server to work but I'm having no success. I'm confused about a few things so I stripped all of the features out of the code and went with something very simple.
I'm trying to use this code:Why doesn't this work? When I pull it up on a webpage, it doesn't work correctly. When I use "0,0,0" at the end, the webpage acts like it wants to download a file. Can you point me in the right direction?Code:IF MESSAGE1[0]="G" AND MESSAGE1[1]="E" AND MESSAGE1[2]="T" THEN LCDOUT $FE, 192, "SERVER HIT!" HIGH LED1G HIGH LED2G HIGH LED3G HSEROUT [13,13] HSEROUT["<HTTP/1.0 200 OK Content-Length: 800>",13] HSEROUT ["Content-Type: text/html",13] hserout [13] hserout ["<html>",13] hserout ["<head>Test page</head>",13] HSEROUT ["<body>This is a test page</body>",13] hserout ["</html>",13] HSEROUT [13,13] PAUSE 500




Bookmarks