A Digital Age Deserves A Digital Leader

Incredibly simple web server

Incredibly simple web server

Postby marathonman » Thu Nov 11, 2004 4:19 am

Get the freeware utility port peeker

http://www.linklogger.com/portpeeker.htm

set it up on port 80 TCP

(let port 80 in thru firewall if necc)

configure it to reply to connections with the following (or whatever, specify the correct content-length..)

Code: Select all
HTTP
content-length:2

Hi


Quick easy webserver for small static text-only pages, no stress, no brains required ^*^

Your 'web address' is your IP address with http:// stuck on the front.

Haven't tried adding headers like content-type:text/html, might be able to show images in html if lucky.
marathonman

Postby Weaver » Thu Nov 11, 2004 6:57 am

You can do some really cool stuff with things like netcat. In Windows, HyperTerminal will do the trick. Have someone point there browser at your listening netcat or HyperTerminal session, then you start typing HTML.

Used to use that trick at an old ISP I worked at to test whether a browser worked at a basic level.

-Weaver
Public Keys

The primary purpose of the DATA statement is to give names to constants; instead of referring to pi as 3.141592653589793 at every appearance, the variable PI can be given that value with a DATA statement and used instead of the longer form of the constant. This also simplifies modifying the program, should the value of pi change.
-- FORTRAN manual for Xerox Computers
PROfessional Member
User avatar
Posts: 1967
Joined: Wed Jun 19, 2002 12:05 am
Location: /home/weaver/

Return to HTML, CSS, and Scripts

Who is online

Users browsing this forum: No registered users and 0 guests